From 46178731c6d690c72f467e09791ebed853b75319 Mon Sep 17 00:00:00 2001 From: Ellon Mendes Date: Thu, 3 Dec 2015 13:01:12 +0100 Subject: [PATCH] "cmake -E copy_if_different" -> "cmake -E copy" for .py files "cmake -E copy" is enough because it checks the timestamp to decide if it the copy should be made or not. --- python/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index 69fea5663..85d7c6765 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -69,7 +69,7 @@ if(Boost_PYTHON${BOOST_PYTHON_VERSION_SUFFIX_UPPERCASE}_FOUND AND PYTHONLIBS_FOU add_custom_command( OUTPUT ${PY_SRC} DEPENDS ${PY_SRC} - COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/${PY_SRC} ${CMAKE_CURRENT_BINARY_DIR}/${PY_SRC} + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/${PY_SRC} ${CMAKE_CURRENT_BINARY_DIR}/${PY_SRC} COMMENT "Copying python/${PY_SRC}" ) add_custom_target(copy_${PY_SRC_TARGET_SUFFIX} DEPENDS ${PY_SRC})