From b3a0a9fcac5ae592a4e74b734f27dc11533d3907 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 27 Feb 2020 09:11:28 +0100 Subject: [PATCH] cmake: 3.11 compat --- CMake/CheckDebug.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMake/CheckDebug.cmake b/CMake/CheckDebug.cmake index 749e188b..cc91da97 100644 --- a/CMake/CheckDebug.cmake +++ b/CMake/CheckDebug.cmake @@ -4,7 +4,7 @@ include(CheckCXXCompilerFlag) function(check_debug) if(CMAKE_BUILD_TYPE STREQUAL "Debug") add_compile_options(-O1) - add_compile_definitions(DEBUG=1) + add_definitions(-DDEBUG=1) foreach(FLAG IN ITEMS -fno-inline -fno-omit-frame-pointer @@ -59,6 +59,6 @@ function(check_debug) endif() endif() else() - add_compile_definitions(DEBUG=0) + add_definitions(-DDEBUG=0) endif() endfunction() -- 2.30.2