-
Notifications
You must be signed in to change notification settings - Fork 197
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
Enable components installation using CMake #621
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks okay to me, but I'm no CMake expert. So I'll defer to @robertmaynard for this one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The install
rules in the raft_export.cmake
need to be updated as well. As it currently stands explicitly specifying the components during install will lead to no CMake config files being installed which stops consumers from using it.
The install logic for the CMake raft-config components https://github.com/rapidsai/raft/blob/branch-22.06/cpp/CMakeLists.txt#L445 |
@robertmaynard Hey, I updated the requested files, please let me know if it is what you expected |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are incorrectly installing all the component related CMake files in the raft
component instead of having them in the proper named component.
cpp/CMakeLists.txt
Outdated
@@ -448,6 +457,7 @@ foreach(comp IN LISTS raft_components) | |||
FILE raft-${comp}-targets.cmake | |||
NAMESPACE raft:: | |||
DESTINATION "${lib_dir}/cmake/raft" | |||
COMPONENT raft |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This install needs to map to the component not raft
. so raft_distance_lib
goes to COMPONENT raft_distance
d486dae
to
2ebe88b
Compare
Signed-off-by: Jordan Jacobelli <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works locally as desired
@Ethyling strangely, there appears to be a cmake error in CI |
Ahh we have to make sure the |
Co-authored-by: Robert Maynard <[email protected]>
@gpucibot merge |
1 similar comment
@gpucibot merge |
Enable components installation using CMake. This feature will be used to merge all CPP conda recipes into one, doing a top level build for all the libs, and only installing the right component while packaging.