Skip to content

Commit

Permalink
Merge pull request #358 from sbriseid/lrsplines3D_data_no_symlink
Browse files Browse the repository at this point in the history
Replaced symlink with copy for lrspline3D data dir.
  • Loading branch information
sbriseid authored Feb 28, 2024
2 parents 7f0e415 + 2562fef commit 492e874
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions lrsplines3D/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 492e874

Please sign in to comment.