* CMakeLists.txt: Enable shared library builds on MinGW (#46233).
This commit is contained in:
parent
3c582060b2
commit
5cf83a5335
|
@ -100,14 +100,14 @@ else ()
|
|||
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}")
|
||||
message(FATAL_ERROR
|
||||
|
|
Loading…
Reference in New Issue