diff --git a/cmake/multipython/MakePythonWheel.cmake b/cmake/multipython/MakePythonWheel.cmake index 919e382e7376a5ed98de4b364c18b7a7d7ca5c36..2b0994219bdfea78bfac2fac2464633c1fc1f181 100644 --- a/cmake/multipython/MakePythonWheel.cmake +++ b/cmake/multipython/MakePythonWheel.cmake @@ -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 - )