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

Update CMakeLists.txt

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

View File

@ -93,10 +93,9 @@ else()
endif()
endif()
# Determine if build mode
if(${CMAKE_BUILD_TYPE} MATCHES "(Debug)+")
add_compile_options(-g)
endif()
# Strip binary
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -s -g")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s -g")
# Enable position independent code
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")