From b0e12023b84541e3cab4fba64a2f9283e011b7a0 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sun, 11 Jul 2021 15:12:27 +0200 Subject: [PATCH] conditionally install pdb --- src/ifcwrap/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ifcwrap/CMakeLists.txt b/src/ifcwrap/CMakeLists.txt index 4b2e95eb44..25455fb444 100644 --- a/src/ifcwrap/CMakeLists.txt +++ b/src/ifcwrap/CMakeLists.txt @@ -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 $ DESTINATION bin OPTIONAL) + if (MSVC) + install(FILES $ DESTINATION bin OPTIONAL) + endif() ENDIF() ELSE() MESSAGE(WARNING "No Python interpreter found, unable to install the Python wrapper")