this repo has no description
1#
2# used to create a symbolic link at configuration time
3#
4function(create_symlink target output_path)
5 if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.14.0")
6 # use CREATE_LINK if we can
7 file(CREATE_LINK "${target}" "${output_path}" SYMBOLIC)
8 else()
9 # fallback to `ln` otherwise
10 execute_process(COMMAND ln -sfn "${target}" "${output_path}")
11 endif()
12endfunction()