Skip to content
Snippets Groups Projects
Commit 45501527 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

#932: last changes

parent 799a09b2
No related branches found
No related tags found
1 merge request!2474forgotten in last MR
Pipeline #136482 passed
......@@ -72,24 +72,17 @@ foreach(_src ${_sources})
configure_file(${_src} ${BA_PY_LIBRARY_OUTPUT_DIR})
endforeach()
##... target BAPyWheel_extra_libs
# external library dependencies
if(WIN32)
set(_extra_libs "${BA_Dependencies_WIN32}")
set(_sources "${BA_Dependencies_WIN32}")
else()
set(_extra_libs "${BA_Dependencies}")
set(_sources "${BA_Dependencies}")
endif()
# store the required extra libraries
set(_dst ${BA_PY_EXTRA_LIBRARY_OUTPUT_DIR})
add_custom_target(BAPyWheel_extra_libs
COMMAND ${CMAKE_COMMAND} -E copy ${_extra_libs} ${_dst}
COMMENT "${header} Copying extra libraries {${_extra_libs}} to '${_dst}'..."
)
foreach(_src ${_sources})
configure_file(${_src} ${BA_PY_EXTRA_LIBRARY_OUTPUT_DIR} COPYONLY)
endforeach()
##... target BAPyWheel
......@@ -124,9 +117,3 @@ else()
COMMENT "${header} Making the Python wheel..."
)
endif()
set_target_properties(BAPyWheel PROPERTIES _EXTRA_LIBRARIES "${_extra_libs}")
add_dependencies(BAPyWheel
BAPyWheel_extra_libs
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment