CMake/Tests/Module/ExternalData/DataNoSymlinks/DataNoSymlinksCheck.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()