add condition for setting BUILD_SHARED (cmake)

- add MINGW and CYGWIN for win build
This commit is contained in:
kinichiro 2016-04-05 15:31:41 +09:00
parent 8131b377bf
commit 177e13159b

View File

@ -172,7 +172,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux")
endif()
endif()
if(NOT (CMAKE_SYSTEM_NAME MATCHES "Darwin" OR MSVC))
if(NOT (CMAKE_SYSTEM_NAME MATCHES "(Darwin|MINGW|CYGWIN)" OR MSVC))
set(BUILD_SHARED true)
endif()