Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rez_install_files with LOCAL_SYMLINK fails when an input file has whitespaces in its name #553

Closed
dagenaisf opened this issue Dec 21, 2018 · 0 comments · Fixed by #1244
Closed
Labels

Comments

@dagenaisf
Copy link

Hi,

Calling rez_install_files with the LOCAL_SYMLINK parameter fails when one of the input files has a symlink in the name. This can be fixed by adding quotes in the following line inside the 'install_files_' macro (rez/src/rezplugins/build_system/cmake_files/InstallFiles.cmake:140):

install( CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${f} ${CMAKE_INSTALL_PREFIX}/${target_fpath})" ),

which becomes:

install( CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink \"${f}\" \"${CMAKE_INSTALL_PREFIX}/${target_fpath}\")" )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants