1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-16 15:17:13 +02:00

Allow for debug builds with debug information.

This commit is contained in:
Sandu Liviu Catalin
2020-04-30 21:34:10 +03:00
parent b93deee276
commit 69e8a9377c
5 changed files with 23 additions and 2 deletions

View File

@ -14,6 +14,12 @@ add_library(Sqrat STATIC sqrat.cpp sqrat.h
sqrat/sqratTypes.h
sqrat/sqratUtil.h
)
# Determine if build mode
if(CMAKE_BUILD_TYPE MATCHES Release)
target_compile_definitions(Sqrat PRIVATE NDEBUG=1)
else()
target_compile_definitions(Sqrat PRIVATE _DEBUG=1)
endif()
# Set library compiler options
target_compile_definitions(Sqrat PUBLIC SCRAT_USE_EXCEPTIONS=1 SCRAT_USE_CXX11_OPTIMIZATIONS=1)
# Set specific compiler options