1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 08:47:17 +01:00

Update CMakeLists.txt

This commit is contained in:
Sandu Liviu Catalin 2021-09-06 19:14:01 +03:00
parent db9586bc3d
commit 9cbac142c2

View File

@ -175,6 +175,8 @@ if(${CMAKE_BUILD_TYPE} MATCHES "(Release)+")
else() else()
target_compile_definitions(SqModule PRIVATE _DEBUG=1 SQMOD_EXCEPTLOC=1) target_compile_definitions(SqModule PRIVATE _DEBUG=1 SQMOD_EXCEPTLOC=1)
endif() endif()
# Strip binary
set_target_properties(SqModule PROPERTIES LINK_FLAGS_RELEASE -s)
# Force 32-bit binaries when necessary # Force 32-bit binaries when necessary
if(FORCE_32BIT_BIN) if(FORCE_32BIT_BIN)
set_target_properties(SqModule PROPERTIES COMPILE_FLAGS "-m32" LINK_FLAGS "-m32") set_target_properties(SqModule PROPERTIES COMPILE_FLAGS "-m32" LINK_FLAGS "-m32")