* CMakeLists.txt [win32]: Allow MSVC DLL builds (#53287).
Do not limit DLL builds to MinGW, since we already have `__declspec(dllexport)' directives in `ftconfig.h'. Also suppress more warnings for POSIX functions.
This commit is contained in:
parent
e277267c52
commit
6f854692a8
|
@ -119,10 +119,6 @@ endif ()
|
||||||
project(freetype)
|
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
|
# Disallow in-source builds
|
||||||
if ("${PROJECT_BINARY_DIR}" STREQUAL "${PROJECT_SOURCE_DIR}")
|
if ("${PROJECT_BINARY_DIR}" STREQUAL "${PROJECT_SOURCE_DIR}")
|
||||||
message(FATAL_ERROR
|
message(FATAL_ERROR
|
||||||
|
@ -164,6 +160,7 @@ set(SHARED_LIBRARY_VERSION ${VERSION_MAJOR}.${VERSION_MINOR})
|
||||||
add_definitions(-DFT2_BUILD_LIBRARY)
|
add_definitions(-DFT2_BUILD_LIBRARY)
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||||
|
add_definitions(-D_CRT_NONSTDC_NO_WARNINGS)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
2018-03-09 Chun-wei Fan <fanc999@yahoo.com.tw>
|
||||||
|
|
||||||
|
* CMakeLists.txt [win32]: Allow MSVC DLL builds (#53287).
|
||||||
|
|
||||||
|
Do not limit DLL builds to MinGW, since we already have
|
||||||
|
`__declspec(dllexport)' directives in `ftconfig.h'.
|
||||||
|
Also suppress more warnings for POSIX functions.
|
||||||
|
|
||||||
2018-03-08 Hugh McMaster <hugh.mcmaster@outlook.com>
|
2018-03-08 Hugh McMaster <hugh.mcmaster@outlook.com>
|
||||||
|
|
||||||
Make installation of `freetype-config' optional (#53093).
|
Make installation of `freetype-config' optional (#53093).
|
||||||
|
|
Loading…
Reference in New Issue