0de47b05f7
Add an ExternalData_NO_SYMLINKS to enable use of copies instead of symlinks to populate the real data files behind a DATA{} reference. This will be useful on UNIX-like systems when the underlying filesystem does not actually support symbolic links. Suggested-by: Matt McCormick <matt.mccormick@kitware.com>
9 lines
255 B
CMake
9 lines
255 B
CMake
set(ExternalData_NO_SYMLINKS 1)
|
|
ExternalData_Add_Test(DataNoSymlinks
|
|
NAME DataNoSymlinksCheck
|
|
COMMAND ${CMAKE_COMMAND}
|
|
-D Data=DATA{Data.dat}
|
|
-P ${CMAKE_CURRENT_SOURCE_DIR}/DataNoSymlinksCheck.cmake
|
|
)
|
|
ExternalData_Add_Target(DataNoSymlinks)
|