mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 21:00:17 -06:00
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()
|