-
Notifications
You must be signed in to change notification settings - Fork 148
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
build: There should be a warning when there are missing links in the workspace dependency graph #257
Comments
This doesn't entirely capture it. These (#30 and #90) will make sure packages in this workspace are ordered correctly, but in the case where an interim dependency exists, the build might be broken. This is really apparent when building c++ libraries that are linked together. |
I see what you mean, Z' links against Y which is linked against X and not X' as it should (where |
Yeah, it's not handled by |
Also note that now that #249 is merged, users are presented with CMake warnings about conflicting paths like the following:
|
closing in favor of #30 |
Currently, a user could mistakenly try to overlay system package X by putting its source code into his or her workspace, in order to build package Z which depends on it. However, if package Z depends on package Y which also depends on X, and package Y is not in the workspace, it could lead to package Z being built against the system package X instead of the workspace package X.
catkin build
could easily check for this by constructing the dependency graph including the workspace and $CMAKE_PREFIX_PATH, and then determining if there are any paths between workspace packages which include system packages. If so, the user should be warned about the problem.The text was updated successfully, but these errors were encountered: