Put build type in quotes to handle empty build type
This commit is contained in:
parent
61ac1a5d78
commit
0d4563638b
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ project(psemek)
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
|
||||||
|
|
||||||
string(TOUPPER ${CMAKE_BUILD_TYPE} PSEMEK_BUILD_TYPE)
|
string(TOUPPER "${CMAKE_BUILD_TYPE}" PSEMEK_BUILD_TYPE)
|
||||||
|
|
||||||
if(PSEMEK_BUILD_TYPE STREQUAL "DEBUG")
|
if(PSEMEK_BUILD_TYPE STREQUAL "DEBUG")
|
||||||
add_definitions("-DPSEMEK_DEBUG=1")
|
add_definitions("-DPSEMEK_DEBUG=1")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue