From e30993cb48fc36253c17c5e956b602c3963cb66c 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..05fa086 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 ${PROJECT_SOURCE_DIR}/pyrfr/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)