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>
This commit is contained in:
Hugo Parente Lima 2010-08-11 13:13:57 -03:00
commit da8e819955

View file

@ -143,8 +143,9 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
endif() endif()
if(NOT PY_DEBUG) if(NOT PY_DEBUG)
message(WARNING "Compiling PySide with debug enabled, but the python executable was not compiled with debug support.") message(WARNING "Compiling PySide with debug enabled, but the python executable was not compiled with debug support.")
else()
add_definitions("-DPy_DEBUG")
endif() endif()
add_definitions("-DPy_DEBUG")
set(PYSIDE_PYTHON_LIBRARIES ${PYTHON_DEBUG_LIBRARIES}) set(PYSIDE_PYTHON_LIBRARIES ${PYTHON_DEBUG_LIBRARIES})
else() else()
set(PYSIDE_PYTHON_LIBRARIES ${PYTHON_LIBRARIES}) set(PYSIDE_PYTHON_LIBRARIES ${PYTHON_LIBRARIES})