diff options
author | Steve Robinson <ssrobins@gmail.com> | 2018-01-10 07:48:39 +0100 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2018-01-10 07:49:43 +0100 |
commit | 707cd028b2b419a5491d444b128d8092afd9f201 (patch) | |
tree | 59b5089eb1758fe929a71ffa24d24e129391d10b /CMakeLists.txt | |
parent | cc2f3cdecff5a351e7e8961b9f2e389ab740231a (diff) | |
download | freetype2-707cd028b2b419a5491d444b128d8092afd9f201.tar.gz |
* CMakeLists.txt [win32]: Suppress warnings for POSIX functions.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
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 |