diff --git a/CMakePresets.json b/CMakePresets.json index 4757b99..9948b42 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -7,7 +7,8 @@ "description": "Debug build", "binaryDir": "${sourceDir}/build", "cacheVariables": { - "ZBBS_DEBUG": "ON" + "ZBBS_DEBUG": "ON", + "CMAKE_BUILD_TYPE": "Debug" } }, { @@ -16,7 +17,8 @@ "description": "Release build", "binaryDir": "${sourceDir}/build", "cacheVariables": { - "ZBBS_DEBUG": "OFF" + "ZBBS_DEBUG": "OFF", + "CMAKE_BUILD_TYPE":"Release" } } ] diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2911432..d7378ba 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -37,6 +37,7 @@ if( ) target_compile_options(zbbs-client-tui PRIVATE /W3) + message("Include debug info (Microsoft)") elseif( (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR @@ -44,6 +45,7 @@ elseif( ) target_compile_options(zbbs-client-tui PRIVATE -Wall -ggdb -pedantic) + message("Include debug info (GNU/Clang)") endif() endif() \ No newline at end of file