conditionally install pdb

This commit is contained in:
Thomas Krijnen
2021-07-11 15:12:27 +02:00
committed by GitHub
parent 34fd959011
commit b0e12023b8
+3 -1
View File
@@ -98,7 +98,9 @@ IF(PYTHONINTERP_FOUND AND NOT "${PYTHON_EXECUTABLE}" STREQUAL "")
DESTINATION "${python_package_dir}/ifcopenshell")
INSTALL(TARGETS _ifcopenshell_wrapper
DESTINATION "${python_package_dir}/ifcopenshell")
install(FILES $<TARGET_PDB_FILE:_ifcopenshell_wrapper> DESTINATION bin OPTIONAL)
if (MSVC)
install(FILES $<TARGET_PDB_FILE:_ifcopenshell_wrapper> DESTINATION bin OPTIONAL)
endif()
ENDIF()
ELSE()
MESSAGE(WARNING "No Python interpreter found, unable to install the Python wrapper")