diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index 7776be62..6bb8e270 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -7,11 +7,10 @@ add_subdirectory(test) add_custom_target(pylib-copy) add_custom_command(TARGET pylib-copy POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different - ${CMAKE_CURRENT_BINARY_DIR}/mscclpp/_mscclpp.cpython-38-x86_64-linux-gnu.so + ${CMAKE_CURRENT_BINARY_DIR}/mscclpp/_mscclpp.*.so ${CMAKE_CURRENT_SOURCE_DIR}/mscclpp COMMAND ${CMAKE_COMMAND} -E copy_if_different - ${CMAKE_CURRENT_BINARY_DIR}/test/_ext.cpython-38-x86_64-linux-gnu.so + ${CMAKE_CURRENT_BINARY_DIR}/test/_ext.*.so ${CMAKE_CURRENT_SOURCE_DIR}/test/_cpp COMMAND ${CMAKE_COMMAND} -E echo "Copy python libraries" ) -