cmake/Tests/Module/ExternalData/DataNoSymlinks/DataNoSymlinksCheck.cmake

7 lines
213 B
CMake
Raw Normal View History

2015-08-17 11:37:30 +02:00
if(NOT EXISTS "${Data}")
2023-07-02 19:51:09 +02:00
message(SEND_ERROR "Input file:\n ${Data}\n" "does not exist!")
2015-08-17 11:37:30 +02:00
endif()
if(IS_SYMLINK "${Data}")
message(SEND_ERROR "Input file:\n ${Data}\nis a symlink but should not be!")
endif()