mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-07 04:46:25 +00:00
cmake: skip compiled extensions when installing ifcwrap sources
This commit is contained in:
@@ -268,6 +268,8 @@ IF(Python_Interpreter_FOUND OR PYTHON_MODULE_INSTALL_DIR)
|
|||||||
ELSE()
|
ELSE()
|
||||||
message(STATUS "Python wrapper will be installed to '${python_package_dir}'.")
|
message(STATUS "Python wrapper will be installed to '${python_package_dir}'.")
|
||||||
file(GLOB_RECURSE sourcefiles "${CMAKE_CURRENT_SOURCE_DIR}/../ifcopenshell-python/ifcopenshell/*")
|
file(GLOB_RECURSE sourcefiles "${CMAKE_CURRENT_SOURCE_DIR}/../ifcopenshell-python/ifcopenshell/*")
|
||||||
|
# Exclude compiled extensions - they're part of dev environment and shouldn't leak into installation.
|
||||||
|
list(FILTER sourcefiles EXCLUDE REGEX "\\.(so|pyd|dylib)$")
|
||||||
foreach(file ${sourcefiles})
|
foreach(file ${sourcefiles})
|
||||||
file(RELATIVE_PATH relative "${CMAKE_CURRENT_SOURCE_DIR}/../ifcopenshell-python/ifcopenshell/" "${file}")
|
file(RELATIVE_PATH relative "${CMAKE_CURRENT_SOURCE_DIR}/../ifcopenshell-python/ifcopenshell/" "${file}")
|
||||||
get_filename_component(dir "${relative}" DIRECTORY)
|
get_filename_component(dir "${relative}" DIRECTORY)
|
||||||
|
|||||||
Reference in New Issue
Block a user