From 1b14a3cd7ec6ef068de4b7f4313040f955d593b2 Mon Sep 17 00:00:00 2001 From: Tomas Pecka <tomas.pecka@fit.cvut.cz> Date: Fri, 22 Nov 2019 20:56:05 +0100 Subject: [PATCH] Fix CMAKE_BUILD_TYPE comparison --- CMake/Modules/CompilerFlags.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMake/Modules/CompilerFlags.cmake b/CMake/Modules/CompilerFlags.cmake index 63ec991acb..63b5b17c2c 100644 --- a/CMake/Modules/CompilerFlags.cmake +++ b/CMake/Modules/CompilerFlags.cmake @@ -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) -- GitLab