Brad King 0de47b05f7 ExternalData: Add option to disable use of symlinks
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>
2015-05-22 09:21:47 -04:00

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)