Fix DOS compilation (Attempt 1)
This commit is contained in:
@@ -36,6 +36,11 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|||||||
SET(UMSKT_USE_SHARED_OPENSSL ON)
|
SET(UMSKT_USE_SHARED_OPENSSL ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# neither does dos idk i'm trying random stuff
|
||||||
|
if (DJGPP_WATT32) {
|
||||||
|
SET(UMSKT_USE_SHARED_OPENSSL ON)
|
||||||
|
endif()
|
||||||
|
|
||||||
IF(UMSKT_USE_SHARED_OPENSSL)
|
IF(UMSKT_USE_SHARED_OPENSSL)
|
||||||
SET(OPENSSL_USE_STATIC_LIBS FALSE)
|
SET(OPENSSL_USE_STATIC_LIBS FALSE)
|
||||||
SET(OPENSSL_MSVC_STATIC_RT FALSE)
|
SET(OPENSSL_MSVC_STATIC_RT FALSE)
|
||||||
@@ -80,6 +85,11 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|||||||
MESSAGE(STATUS "[UMSKT] macOS has no static library - Shared library forced on")
|
MESSAGE(STATUS "[UMSKT] macOS has no static library - Shared library forced on")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (DJGPP_WATT32) {
|
||||||
|
SET(BUILD_SHARED_LIBS ON)
|
||||||
|
MESSAGE(STATUS "[UMSKT] DOS has no static library - Shared library forced on")
|
||||||
|
endif()
|
||||||
|
|
||||||
# if we're compiling with MSVC, respect the DEBUG compile option
|
# if we're compiling with MSVC, respect the DEBUG compile option
|
||||||
IF(MSVC)
|
IF(MSVC)
|
||||||
SET(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
SET(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||||
|
|||||||
Reference in New Issue
Block a user