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