mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 06:21:40 +00:00
Don't try to install directories as files (some change in recent cmake?)
This commit is contained in:
@@ -117,8 +117,10 @@ IF((PYTHONINTERP_FOUND AND NOT "${PYTHON_EXECUTABLE}" STREQUAL "") OR PYTHON_MOD
|
|||||||
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)
|
||||||
INSTALL(FILES "${file}"
|
if(NOT IS_DIRECTORY "${file}")
|
||||||
DESTINATION "${python_package_dir}/ifcopenshell/${dir}")
|
INSTALL(FILES "${file}"
|
||||||
|
DESTINATION "${python_package_dir}/ifcopenshell/${dir}")
|
||||||
|
endif()
|
||||||
ENDFOREACH()
|
ENDFOREACH()
|
||||||
INSTALL(FILES "${CMAKE_BINARY_DIR}/ifcwrap/ifcopenshell_wrapper.py"
|
INSTALL(FILES "${CMAKE_BINARY_DIR}/ifcwrap/ifcopenshell_wrapper.py"
|
||||||
DESTINATION "${python_package_dir}/ifcopenshell")
|
DESTINATION "${python_package_dir}/ifcopenshell")
|
||||||
|
|||||||
Reference in New Issue
Block a user