Code Review
/
staging
/
windowmanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
0b491e2
)
cmake: enable _GLIBCXX_DEBUG when building Debug
author
Marcus Fritzsch
<marcus_fritzsch@mentor.com>
Fri, 30 Jun 2017 11:55:12 +0000
(13:55 +0200)
committer
Marcus Fritzsch
<marcus_fritzsch@mentor.com>
Tue, 8 Aug 2017 15:24:00 +0000
(17:24 +0200)
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
src/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/src/CMakeLists.txt
b/src/CMakeLists.txt
index
565f9fd
..
fda32c1
100644
(file)
--- a/
src/CMakeLists.txt
+++ b/
src/CMakeLists.txt
@@
-13,6
+13,12
@@
target_compile_definitions(winman
WINMAN_VERSION_STRING="${PACKAGE_VERSION}"
_GNU_SOURCE) # XXX should I define this here?!
+if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
+ target_compile_definitions(winman
+ PRIVATE
+ _GLIBCXX_DEBUG)
+endif()
+
target_compile_options(winman
PRIVATE
-Wall -Wextra -Wno-unused-parameter -Wno-comment)