From a29685504cdf4be75b01822815e1e31b4b7ce1e2 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sun, 10 Aug 2025 13:29:40 -0700 Subject: [PATCH] Try this --- 3rdparty/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/3rdparty/CMakeLists.txt b/3rdparty/CMakeLists.txt index a9e8889a..1347a3e8 100644 --- a/3rdparty/CMakeLists.txt +++ b/3rdparty/CMakeLists.txt @@ -93,3 +93,10 @@ add_library(libweaver STATIC ${libweaver_SOURCE_DIR}/lib/sitypes.cpp ) target_include_directories(libweaver PUBLIC ${libweaver_SOURCE_DIR}/lib) +if(MSVC) + # Undefine _WIN32 for the MSVC compiler + target_compile_definitions(libweaver PRIVATE /U_WIN32) +else() + # Undefine _WIN32 for GCC, Clang, and other compilers + target_compile_definitions(libweaver PRIVATE -U_WIN32) +endif()