ref: 5cf83a5335cbbc71037930de857b947c5de38948
parent: 3c582060b28f7d51b6d138130b052e8368c0cd36
author: StudioEtrange <[email protected]>
date: Tue Oct 20 03:19:44 EDT 2015
* CMakeLists.txt: Enable shared library builds on MinGW (#46233).
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -100,13 +100,13 @@
endif ()
endif ()
-if (WIN32 AND BUILD_SHARED_LIBS)
- message(FATAL_ERROR "Shared libraries not supported on Windows.")
-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}")
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-10-20 StudioEtrange <[email protected]>
+
+ * CMakeLists.txt: Enable shared library builds on MinGW (#46233).
+
2015-10-20 Werner Lemberg <[email protected]>
* src/type1/t1afm.c (T1_Read_Metrics): Fix memory leak (#46229).