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
+6
View File
@@ -40,6 +40,12 @@ add_library(Squirrel STATIC
stdlib/sqstdstring.cpp
stdlib/sqstdsystem.cpp
)
# Determine if build mode
if(CMAKE_BUILD_TYPE MATCHES Release)
target_compile_definitions(Squirrel PRIVATE NDEBUG=1)
else()
target_compile_definitions(Squirrel PRIVATE _DEBUG=1)
endif()
# Make sure Squirrel knows this is 64 bit
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
target_compile_definitions(Squirrel PUBLIC _SQ64)