CMake: updates presets

This commit is contained in:
2026-02-10 13:15:45 +02:00
parent 8a45c6dbf9
commit 9bc3b94c45
2 changed files with 6 additions and 2 deletions
+4 -2
View File
@@ -7,7 +7,8 @@
"description": "Debug build", "description": "Debug build",
"binaryDir": "${sourceDir}/build", "binaryDir": "${sourceDir}/build",
"cacheVariables": { "cacheVariables": {
"ZBBS_DEBUG": "ON" "ZBBS_DEBUG": "ON",
"CMAKE_BUILD_TYPE": "Debug"
} }
}, },
{ {
@@ -16,7 +17,8 @@
"description": "Release build", "description": "Release build",
"binaryDir": "${sourceDir}/build", "binaryDir": "${sourceDir}/build",
"cacheVariables": { "cacheVariables": {
"ZBBS_DEBUG": "OFF" "ZBBS_DEBUG": "OFF",
"CMAKE_BUILD_TYPE":"Release"
} }
} }
] ]
+2
View File
@@ -37,6 +37,7 @@ if(
) )
target_compile_options(zbbs-client-tui PRIVATE /W3) target_compile_options(zbbs-client-tui PRIVATE /W3)
message("Include debug info (Microsoft)")
elseif( elseif(
(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR
@@ -44,6 +45,7 @@ elseif(
) )
target_compile_options(zbbs-client-tui PRIVATE -Wall -ggdb -pedantic) target_compile_options(zbbs-client-tui PRIVATE -Wall -ggdb -pedantic)
message("Include debug info (GNU/Clang)")
endif() endif()
endif() endif()