mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-20 14:11:16 +00:00
Try this
This commit is contained in:
parent
189c1af1e4
commit
a29685504c
7
3rdparty/CMakeLists.txt
vendored
7
3rdparty/CMakeLists.txt
vendored
@ -93,3 +93,10 @@ add_library(libweaver STATIC
|
|||||||
${libweaver_SOURCE_DIR}/lib/sitypes.cpp
|
${libweaver_SOURCE_DIR}/lib/sitypes.cpp
|
||||||
)
|
)
|
||||||
target_include_directories(libweaver PUBLIC ${libweaver_SOURCE_DIR}/lib)
|
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()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user