···11+#
22+# used to create a symbolic link at configuration time
33+#
44+function(create_symlink target output_path)
55+ if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.14.0")
66+ # use CREATE_LINK if we can
77+ file(CREATE_LINK "${target}" "${output_path}" SYMBOLIC)
88+ else()
99+ # fallback to `ln` otherwise
1010+ execute_process(COMMAND ln -sfn "${target}" "${output_path}")
1111+ endif()
1212+endfunction()