1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-08-04 07:01:46 +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

@@ -22,8 +22,10 @@ else()
set(CMAKE_CXX_STANDARD_REQUIRED ON)
endif()
# Default to release mode
set(CMAKE_BUILD_TYPE "Release")
# Determine if build mode
if(CMAKE_BUILD_TYPE MATCHES Debug)
add_compile_options(-g)
endif()
# Include mingw runntime into the binary
if (GCC OR MINGW)