projects
/
m6w6
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
9d8ad71
)
cmake: 3.11 compat
author
Michael Wallner
<mike@php.net>
Thu, 27 Feb 2020 08:11:28 +0000
(09:11 +0100)
committer
Michael Wallner
<mike@php.net>
Thu, 27 Feb 2020 08:11:28 +0000
(09:11 +0100)
CMake/CheckDebug.cmake
patch
|
blob
|
history
diff --git
a/CMake/CheckDebug.cmake
b/CMake/CheckDebug.cmake
index 749e188b975d638f4c9a252e6d3113178587cf4a..cc91da979171d09e23d5f375ecf7445808c00e13 100644
(file)
--- 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(-D
DEBUG=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(-D
DEBUG=0)
endif()
endfunction()