From 5158400b996079c683db054542d79ffe71ea0700 Mon Sep 17 00:00:00 2001 From: Jan-Matthias Braun Date: Fri, 3 Jul 2020 17:13:36 +0200 Subject: [PATCH] Quote CMAKE_BUILD_TYPE variable in CMakeLists.txt to allow it being unset. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4dc7854..f03cbaa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) set(CMAKE_VERBOSE_MAKEFILE ON) -if(${CMAKE_BUILD_TYPE} STREQUAL "Debug") +if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") message("Debug build") add_definitions(-DDEBUG_BUILD) endif()