aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-08-11 13:13:57 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-08-12 10:03:08 -0300
commitda8e8199550cca9863ac9c0310ce56b2cc63cb4b (patch)
treed03d7316e360521b2b8e9269549b2291b08ffc4b
parent9f2f97de733bbe629ef306ee3a631ee9e78c9b85 (diff)
Fix debug build when no debug symbols was found for Python libs.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1e49a86d1..b75d1f9cf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -143,8 +143,9 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
endif()
if(NOT PY_DEBUG)
message(WARNING "Compiling PySide with debug enabled, but the python executable was not compiled with debug support.")
+ else()
+ add_definitions("-DPy_DEBUG")
endif()
- add_definitions("-DPy_DEBUG")
set(PYSIDE_PYTHON_LIBRARIES ${PYTHON_DEBUG_LIBRARIES})
else()
set(PYSIDE_PYTHON_LIBRARIES ${PYTHON_LIBRARIES})