From 707cd028b2b419a5491d444b128d8092afd9f201 Mon Sep 17 00:00:00 2001 From: Steve Robinson Date: Wed, 10 Jan 2018 07:48:39 +0100 Subject: [PATCH] * CMakeLists.txt [win32]: Suppress warnings for POSIX functions. --- CMakeLists.txt | 3 +++ ChangeLog | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b0f86126b..83f26b94b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -162,6 +162,9 @@ set(SHARED_LIBRARY_VERSION ${VERSION_MAJOR}.${VERSION_MINOR}) # Compiler definitions for building the library add_definitions(-DFT2_BUILD_LIBRARY) +if (WIN32) + add_definitions(-D_CRT_SECURE_NO_WARNINGS) +endif () # Find dependencies diff --git a/ChangeLog b/ChangeLog index 96359ee80..4dd399e5d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2018-01-10 Steve Robinson + + * CMakeLists.txt [win32]: Suppress warnings for POSIX functions. + 2018-01-10 Ewald Hew [psaux] Correctly handle Flex features (#52846).