From: Michael Wallner Date: Thu, 27 Feb 2020 08:11:28 +0000 (+0100) Subject: cmake: 3.11 compat X-Git-Tag: 1.1.0-beta1~250^2~15 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=b3a0a9fcac5ae592a4e74b734f27dc11533d3907;p=m6w6%2Flibmemcached cmake: 3.11 compat --- 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()