-
Notifications
You must be signed in to change notification settings - Fork 280
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
Remove usage of NO_CMAKE_FIND_ROOT_PATH to enable cross compilation. #1145
base: noetic-devel
Are you sure you want to change the base?
Conversation
I agree with @windelbouwman that the From the documentation of
So why would one want to explicitly disable that behavior? But the occurence of There is no problem with the current version of catkin to build and install package by package with Or does anyone have a working solution without the need to patch
Is there still interest in such a patch, given the that this pull request is already open for more than a year and the last release was in 2021? I got quite far with only minimal changes, basically those removals of I personally do not have the use case of cross-compiling in mind, as mentioned in the title of this PR. Instead I want to build full workspace binary distributions for later installation, eventually in multiple stages without mixing the new packages with others already installed at the final destination using docker multi-stage builds. I assume that the requirements are very similar, and that both use cases would work if catkin could distinguish cleanly between paths used at build time (e.g. Related issues: |
It's not fully clear to me why
NO_CMAKE_FIND_ROOT_PATH
was used. I think it was done for consistency, since it's used everywhere in the same way. I believe this option is not needed, and even should not be there.The option not being used has these advantages: