diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-10-25 18:25:50 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-10-26 09:42:12 -0300 |
commit | 9d479c812d4e2e6fc427f96af4ce4f415c8eab0a (patch) | |
tree | 538251baa8562d730a6fc75221d33a5a002bf519 /CMakeLists.txt | |
parent | 839d7efb8f42e732cfab043ba74384f52502e70b (diff) | |
download | shiboken-9d479c812d4e2e6fc427f96af4ce4f415c8eab0a.tar.gz shiboken-9d479c812d4e2e6fc427f96af4ce4f415c8eab0a.tar.xz shiboken-9d479c812d4e2e6fc427f96af4ce4f415c8eab0a.zip |
libshiboken now sets debug flags for all modules linking against it.
The information was added to cmake and pkg-config files.
Reviewed by Lauro Moura <lauro.neto@openbossa.org>
Reviewed by Renato Araujo <renato.filho@openbossa.org>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index dc4c8348..a0a4469d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -78,6 +78,8 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug") message(WARNING "Compiling shiboken with debug enabled, but the python executable was not compiled with debug support.") else() add_definitions("-DPy_DEBUG") + set(SBK_ADD_PY_DEBUG_DEFINITION "add_definitions(\"-DPy_DEBUG\")") + set(SBK_PKG_CONFIG_PY_DEBUG_DEFINITION " -DPy_DEBUG") endif() set(SBK_PYTHON_LIBRARIES ${PYTHON_DEBUG_LIBRARIES}) set(SHIBOKEN_BUILD_TYPE "Debug") @@ -90,6 +92,7 @@ if(APPLE) endif() + if (BUILD_TESTS) enable_testing() endif() |