From eeb1c7443ba684854e7e67a962217e4de9fa3982 Mon Sep 17 00:00:00 2001 From: Deyao Chen Date: Thu, 13 Oct 2022 16:18:47 +0100 Subject: [PATCH] use copy directly for python package --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0ccd960..eecc524 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,7 +45,7 @@ endif(DOXYGEN_FOUND) if(PYTHONINTERP_FOUND AND SWIG_FOUND) file(COPY ${PROJECT_SOURCE_DIR}/pyrfr DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) - file(RENAME ${CMAKE_CURRENT_BINARY_DIR}/pyrfr ${CMAKE_CURRENT_BINARY_DIR}/python_package) + file(COPY ${CMAKE_CURRENT_BINARY_DIR}/pyrfr DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/python_package) configure_file(${PROJECT_SOURCE_DIR}/pyrfr/setup.py ${CMAKE_CURRENT_BINARY_DIR}/python_package/setup.py) configure_file(${PROJECT_SOURCE_DIR}/pyrfr/pyrfr/__init__.py ${CMAKE_CURRENT_BINARY_DIR}/python_package/pyrfr/__init__.py)