From a6e02f04dd60cc64fd609ff80f2cc253cbf8ac01 Mon Sep 17 00:00:00 2001 From: Cedric Doucet Date: Mon, 27 Nov 2017 10:36:26 +0100 Subject: [PATCH] Fix a bug: need to copy a directory, not just a file --- examples/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index a78833c8..0bd33279 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -1,9 +1,9 @@ include_directories(${PROJECT_BINARY_DIR}/src/include ${PROJECT_SOURCE_DIR}/src/include) enable_testing() add_custom_target(link_data - COMMAND ${CMAKE_COMMAND} -E copy + COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/Data ${CMAKE_CURRENT_BINARY_DIR}/Data - COMMAND ${CMAKE_COMMAND} -E copy + COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/Data_specfun ${CMAKE_CURRENT_BINARY_DIR}/Data_specfun)