Skip to content
Snippets Groups Projects
Unverified Commit 1b14a3cd authored by Tomáš Pecka's avatar Tomáš Pecka
Browse files

Fix CMAKE_BUILD_TYPE comparison

parent b86970c5
No related branches found
No related tags found
1 merge request!117Merge jt
Pipeline #56450 passed with warnings
......@@ -39,7 +39,7 @@ elseif(BUILD_TYPE STREQUAL "snapshot")
add_definitions(-DREL_SNAPSHOT)
endif()
 
if (CMAKE_BUILD_TYPE STREQUAL "debug")
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
add_definitions(-DDEBUG)
 
CHECK_CXX_COMPILER_FLAG("-Og" COMPILER_HAS_OG)
......@@ -49,7 +49,7 @@ if (CMAKE_BUILD_TYPE STREQUAL "debug")
add_compile_options(-O0)
endif()
 
elseif (CMAKE_BUILD_TYPE STREQUAL "release")
elseif (CMAKE_BUILD_TYPE STREQUAL "Release")
remove_definitions(-DNDEBUG)
add_definitions(-DRELEASE)
add_compile_options(-O3)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment