• Tushar Maheshwari's avatar
    cmFileCommand: Add CREATE_LINK subcommand · 81650e48
    Tushar Maheshwari authored
    This brings the functionality of `cmake -E create_symlink` and more to scripts.
    The default behavior is to create hard links.
    The `SYMBOLIC` argument can be used to create symlinks instead.
    The `COPY_ON_ERROR` argument enables a fallback to copying the file in case the link fails.
    The `RESULT <var>` retrieves the error message generated by the system.
    It is set to "0" on success.
    Fixes: #16926
cmFileCommand.h 2.79 KB