From da8e8199550cca9863ac9c0310ce56b2cc63cb4b Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Wed, 11 Aug 2010 13:13:57 -0300 Subject: Fix debug build when no debug symbols was found for Python libs. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewer: Luciano Wolf Renato Araújo --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}) -- cgit v1.2.3