mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +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})
|
||||
FILE(RELATIVE_PATH relative "${CMAKE_CURRENT_SOURCE_DIR}/../ifcopenshell-python/ifcopenshell/" "${file}")
|
||||
GET_FILENAME_COMPONENT(dir "${relative}" DIRECTORY)
|
||||
INSTALL(FILES "${file}"
|
||||
DESTINATION "${python_package_dir}/ifcopenshell/${dir}")
|
||||
if(NOT IS_DIRECTORY "${file}")
|
||||
INSTALL(FILES "${file}"
|
||||
DESTINATION "${python_package_dir}/ifcopenshell/${dir}")
|
||||
endif()
|
||||
ENDFOREACH()
|
||||
INSTALL(FILES "${CMAKE_BINARY_DIR}/ifcwrap/ifcopenshell_wrapper.py"
|
||||
DESTINATION "${python_package_dir}/ifcopenshell")
|
||||
|
||||
Reference in New Issue
Block a user