Skip to content
  • Tushar Maheshwari's avatar
    cmFileCommand: Add CREATE_LINK subcommand · 81650e48
    Tushar Maheshwari authored and Brad King's avatar Brad King committed
    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
    81650e48