From 178c9e068924120945d57befdf72da905272758a Mon Sep 17 00:00:00 2001 From: TheTank20 Date: Sat, 2 Sep 2023 13:43:03 -0400 Subject: [PATCH] Fix DOS compilation (Attempt 1) --- CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 48bcae7..bbac7cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,6 +36,11 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") SET(UMSKT_USE_SHARED_OPENSSL ON) 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) SET(OPENSSL_USE_STATIC_LIBS 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") 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(MSVC) SET(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>")