ifcwrap cmake - fix issue with debug build after migration to FindPython

In FindPython variable was renamed to Python_LIBRARY_DEBUG
This commit is contained in:
Andrej730
2025-10-24 13:53:22 +05:00
parent 1a83e52935
commit 6bc4046b17
+2 -2
View File
@@ -66,8 +66,8 @@ SET(CMAKE_SWIG_FLAGS ${SWIG_DEFINES})
# NOTE Workaround for most likely missing debug Python libraries on Windows (requires Python built from the source).
# Python 3.5 intaller and onwards will have an option to install the debug libraries too.
# NOTE PYTHON_DEBUG_LIBRARIES appears to be a deprecated variable
IF (WIN32 AND NOT PYTHON_DEBUG_LIBRARIES)
MESSAGE(STATUS "PYTHON_DEBUG_LIBRARIES not found, defining SWIG_PYTHON_INTERPRETER_NO_DEBUG workaround for IfcWrap.")
IF (WIN32 AND NOT Python_LIBRARY_DEBUG)
MESSAGE(STATUS "Python debug libraries were not found, defining SWIG_PYTHON_INTERPRETER_NO_DEBUG workaround for IfcWrap.")
ADD_DEFINITIONS(-DSWIG_PYTHON_INTERPRETER_NO_DEBUG)
ENDIF()