Code Review
/
staging
/
windowmanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
cmake: enable _GLIBCXX_DEBUG when building Debug
[staging/windowmanager.git]
/
src
/
CMakeLists.txt
diff --git
a/src/CMakeLists.txt
b/src/CMakeLists.txt
index
70f2ad3
..
fda32c1
100644
(file)
--- a/
src/CMakeLists.txt
+++ b/
src/CMakeLists.txt
@@
-1,4
+1,3
@@
-wlproto(IVI_APP ivi-application)
wlproto(IVI_CON ivi-controller)
add_executable(winman
wlproto(IVI_CON ivi-controller)
add_executable(winman
@@
-7,7
+6,6
@@
add_executable(winman
wayland.hpp
util.c
util.h
wayland.hpp
util.c
util.h
- ${IVI_APP_PROTO}
${IVI_CON_PROTO})
target_compile_definitions(winman
${IVI_CON_PROTO})
target_compile_definitions(winman
@@
-15,6
+13,12
@@
target_compile_definitions(winman
WINMAN_VERSION_STRING="${PACKAGE_VERSION}"
_GNU_SOURCE) # XXX should I define this here?!
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)
target_compile_options(winman
PRIVATE
-Wall -Wextra -Wno-unused-parameter -Wno-comment)