diff --git a/CMakeLists.txt b/CMakeLists.txt index a031569..48bcae7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,6 +31,11 @@ OPTION(MSVC_MSDOS_STUB "Specify a custom MS-DOS stub for a 32-bit MSVC compilati SET(UMSKT_LINK_LIBS ${UMSKT_LINK_LIBS}) SET(UMSKT_LINK_DIRS ${UMSKT_LINK_DIRS}) +# macOS does not support static build +if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") + SET(UMSKT_USE_SHARED_OPENSSL ON) +endif() + IF(UMSKT_USE_SHARED_OPENSSL) SET(OPENSSL_USE_STATIC_LIBS FALSE) SET(OPENSSL_MSVC_STATIC_RT FALSE) @@ -40,11 +45,7 @@ ELSE() SET(OPENSSL_MSVC_STATIC_RT TRUE) ENDIF() -# macOS does not support static build -if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") - set(OPENSSL_USE_STATIC_LIBS FALSE) - set(OPENSSL_MSVC_STATIC_RT FALSE) -endif() + IF(DJGPP_WATT32) SET(CMAKE_SYSTEM_NAME MSDOS)