From bf88fc946d18d323abbcda22aca8835ccaf98dac Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Mon, 5 Mar 2018 12:33:34 +0800 Subject: [PATCH] * CMakeLists.txt [win32]: Allow MSVC DLL builds (#53287) * CMakeLists.txt: Do not limit DLL builds to MinGW, since we already have __declspec(dllexport) directives in ftconfig.h. Also suppress more warnings for POSIX functions. --- CMakeLists.txt | 5 +---- ChangeLog | 4 ++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 83f26b94b..f335fec18 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -119,10 +119,6 @@ endif () project(freetype) -if (WIN32 AND NOT MINGW AND BUILD_SHARED_LIBS) - message(FATAL_ERROR "Building shared libraries on Windows needs MinGW") -endif () - # Disallow in-source builds if ("${PROJECT_BINARY_DIR}" STREQUAL "${PROJECT_SOURCE_DIR}") message(FATAL_ERROR @@ -164,6 +160,7 @@ set(SHARED_LIBRARY_VERSION ${VERSION_MAJOR}.${VERSION_MINOR}) add_definitions(-DFT2_BUILD_LIBRARY) if (WIN32) add_definitions(-D_CRT_SECURE_NO_WARNINGS) + add_definitions(-D_CRT_NONSTDC_NO_WARNINGS) endif () diff --git a/ChangeLog b/ChangeLog index 3bef98b55..7b5a84d27 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2018-03-09 Chun-wei Fan + + * CMakeLists.txt [win32]: Allow MSVC DLL builds (#53287) + 2018-03-08 Hugh McMaster Make installation of `freetype-config' optional (#53093). -- 2.14.1.windows.1