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:
parent
9f2f97de73
commit
da8e819955
1 changed files with 2 additions and 1 deletions
|
|
@ -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})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue