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

ament_cmake_symlink_install.cmake breaks CPack #566

Open
stewpend0us opened this issue Dec 16, 2024 · 1 comment
Open

ament_cmake_symlink_install.cmake breaks CPack #566

stewpend0us opened this issue Dec 16, 2024 · 1 comment

Comments

@stewpend0us
Copy link

stewpend0us commented Dec 16, 2024

When I do a symlink install and then try to cpack: ament_cmake_symlink_install.cmake fails.

When cpack runs CMAKE_CURRENT_BINARY_DIR is not set. This casuses ament to try to create symlink_install_manifest.txt in the root directory which causes it (and cpack) to fail.

Error message:

CMake Error at /.../.../ament_cmake_symlink_install/ament_cmake_symlink_install.cmake:5 (file):
  file failed to open for writing (Permission denied):

    /symlink_install_manifest.txt

Work around:

manually create /symlink_install_manifest.txt that way ament will find the file and write to it and cpack will not fail.

better yet: ln -s /dev/null /symlink_install_manifest.txt

@stewpend0us
Copy link
Author

Welp. Turns out while this does get me an install file the install file doesn't have any content. I gues CMake/CPack aren't capable of following symlinks...

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

No branches or pull requests

1 participant