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>
7 lines
210 B
CMake
7 lines
210 B
CMake
if(NOT EXISTS "${Data}")
|
|
message(SEND_ERROR "Input file:\n ${Data}\ndoes not exist!")
|
|
endif()
|
|
if(IS_SYMLINK "${Data}")
|
|
message(SEND_ERROR "Input file:\n ${Data}\nis a symlink but should not be!")
|
|
endif()
|