diff options
-rw-r--r-- | CMakeLists.txt | 3 |
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}) |