CMake: updates presets
This commit is contained in:
+4
-2
@@ -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"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@@ -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()
|
||||
Reference in New Issue
Block a user