From 9e008996ab84dfdf35635566d6abeeee66f44b01 Mon Sep 17 00:00:00 2001 From: p01arst0rm Date: Tue, 20 Apr 2021 20:11:50 +0100 Subject: [PATCH] swap STREQUAL for MATCHES --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 32798f3ffe..82fb1ffa1b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,7 +25,7 @@ if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Release") endif() -if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug") +if(NOT CMAKE_BUILD_TYPE MATCHES "Debug") add_definitions(-DNDEBUG) elseif(NOT MSVC) add_definitions(-D_DEBUG)