From 919f1f7a3f489a1d43475b07b6ae35196889c474 Mon Sep 17 00:00:00 2001 From: Robert Adam Date: Sun, 6 Dec 2020 08:48:02 +0100 Subject: BUILD: Fix Debug flags not set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We used EQUAL to compare the option's value to a String. This however does not work as according to the cmake documentation on EQUAL says "True if the given string or variable’s value is a valid number and equal to that on the right." As we are not comparing numbers but "real Strings", we have to use STREQUAL instead. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 09f0aa4fd..1b7af9623 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,7 +52,7 @@ option(debug-dependency-search "Prints extended information during the search fo if(NOT CMAKE_BUILD_TYPE) set_property(CACHE CMAKE_BUILD_TYPE PROPERTY VALUE "Release") -elseif(CMAKE_BUILD_TYPE EQUAL "Debug") +elseif(CMAKE_BUILD_TYPE STREQUAL "Debug") add_definitions( "-DDEBUG" "-DSNAPSHOT_BUILD" -- cgit v1.2.3