From 2562fef53117784baa0f35ea6e8616c5749c7c51 Mon Sep 17 00:00:00 2001 From: Sverre Briseid Date: Wed, 28 Feb 2024 19:38:27 +0100 Subject: [PATCH] Replaced symlink with copy for lrspline3D data dir. --- lrsplines3D/CMakeLists.txt | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/lrsplines3D/CMakeLists.txt b/lrsplines3D/CMakeLists.txt index 10496911..bbe495b4 100644 --- a/lrsplines3D/CMakeLists.txt +++ b/lrsplines3D/CMakeLists.txt @@ -128,15 +128,10 @@ IF(GoTools_COMPILE_TESTS) ADD_APPS(test/acceptance "Acceptance Tests" TRUE) ENDIF(GoTools_COMPILE_TESTS) -# Copy/symlink data dir. +# Copy data IF(GoTools_COPY_DATA) - if (WIN32) - FILE(COPY ${GoLRspline3D_SOURCE_DIR}/data - DESTINATION ${GoLRspline3D_BINARY_DIR}) - else() - execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_CURRENT_SOURCE_DIR}/data - ${CMAKE_CURRENT_BINARY_DIR}/data) - endif() + FILE(COPY ${GoLRspline3D_SOURCE_DIR}/data + DESTINATION ${GoLRspline3D_BINARY_DIR}) ENDIF() # Create a tmp directory.