Fix DEBUG/RELEASE building options
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
parent
9dc0e60f28
commit
75ac59f48a
@ -24,14 +24,14 @@ if(NOT BUILD_TYPE)
|
|||||||
set(BUILD_TYPE DEBUG)
|
set(BUILD_TYPE DEBUG)
|
||||||
endif()
|
endif()
|
||||||
string(TOUPPER ${BUILD_TYPE} BUILD_TYPE)
|
string(TOUPPER ${BUILD_TYPE} BUILD_TYPE)
|
||||||
set(CMAKE_BUILD_TYPE "")
|
|
||||||
|
|
||||||
# Set build type specific definitions
|
# Set build type specific definitions
|
||||||
if(BUILD_TYPE STREQUAL "DEBUG")
|
if(BUILD_TYPE STREQUAL "DEBUG")
|
||||||
add_definitions(-DDBG=1)
|
add_definitions(-DDBG=1)
|
||||||
|
set(CMAKE_BUILD_TYPE DEBUG)
|
||||||
else()
|
else()
|
||||||
set(BUILD_TYPE RELEASE)
|
set(BUILD_TYPE RELEASE)
|
||||||
add_definitions(-DDBG=0)
|
set(CMAKE_BUILD_TYPE NONE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Print build type
|
# Print build type
|
||||||
|
Loading…
Reference in New Issue
Block a user