Skip to content
Snippets Groups Projects
Commit 0f6f37a5 authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

Task #8021: Added check for existing target to lofar_create_target_symlink()

parent fc08eb2c
No related branches found
No related tags found
No related merge requests found
......@@ -213,6 +213,10 @@ if(NOT DEFINED LOFAR_MACROS_INCLUDED)
# use of the generator expression $<TARGET_FILE>.
# --------------------------------------------------------------------------
macro(lofar_create_target_symlink _target _symlink)
if(NOT TARGET _target)
message(SEND_ERROR
"Cannot create symbolic link to non-existing target ${_target}")
endif(NOT TARGET _target)
if(POLICY CMP0026)
set(_location $<TARGET_FILE:${_target}>)
else(POLICY CMP0026)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment