diff options
author | Robert Adam <dev@robert-adam.de> | 2020-12-06 10:48:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-06 10:48:02 +0300 |
commit | 919f1f7a3f489a1d43475b07b6ae35196889c474 (patch) | |
tree | 06b9a3f59e52244f7f80d77646890501f4dd7134 | |
parent | c97c15059db98f93449138b67b1fa95e1ad30263 (diff) |
BUILD: Fix Debug flags not set
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.
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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" |