Modified cmake files to make use of debug information provided by Shiboken.
In summation, PySide is compiled for debug if the libshiboken is compiled for debug.
This commit is contained in:
parent
b7f36fec39
commit
720c76980d
4 changed files with 5 additions and 44 deletions
|
|
@ -1,21 +0,0 @@
|
|||
INCLUDE(FindPythonInterp)
|
||||
|
||||
find_package(PythonInterp REQUIRED)
|
||||
|
||||
#Fix missing variable on UNIX env
|
||||
if(NOT PYTHON_DEBUG_LIBRARIES AND UNIX)
|
||||
set(PYTHON_DEBUG_LIBRARIES "${PYTHON_LIBRARIES}")
|
||||
endif()
|
||||
|
||||
if(PYTHONINTERP_FOUND AND UNIX AND CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
# This is for Debian
|
||||
set(PYTHON_EXECUTABLE_TMP "${PYTHON_EXECUTABLE}-dbg")
|
||||
|
||||
# Fall back to the standard interpreter.
|
||||
if(NOT EXISTS "${PYTHON_EXECUTABLE_TMP}")
|
||||
set(PYTHON_EXECUTABLE_TMP "${PYTHON_EXECUTABLE}")
|
||||
endif()
|
||||
|
||||
set(PYTHON_EXECUTABLE "${PYTHON_EXECUTABLE_TMP}")
|
||||
endif()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue