mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 06:21:40 +00:00
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:
@@ -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).
|
# 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.
|
# 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
|
# NOTE PYTHON_DEBUG_LIBRARIES appears to be a deprecated variable
|
||||||
IF (WIN32 AND NOT PYTHON_DEBUG_LIBRARIES)
|
IF (WIN32 AND NOT Python_LIBRARY_DEBUG)
|
||||||
MESSAGE(STATUS "PYTHON_DEBUG_LIBRARIES not found, defining SWIG_PYTHON_INTERPRETER_NO_DEBUG workaround for IfcWrap.")
|
MESSAGE(STATUS "Python debug libraries were not found, defining SWIG_PYTHON_INTERPRETER_NO_DEBUG workaround for IfcWrap.")
|
||||||
ADD_DEFINITIONS(-DSWIG_PYTHON_INTERPRETER_NO_DEBUG)
|
ADD_DEFINITIONS(-DSWIG_PYTHON_INTERPRETER_NO_DEBUG)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user