Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] Ensure hnswlib can be found from RAFT's build dir (#2145)
This PR fixes using RAFT from a build dir, i.e. `cmake -S cuml/cpp -B cuml/cpp/build -Draft_ROOT=raft/cpp/build`. Without this fix, CMake errors when cuML does `find_package(RAFT)` with the following error: ``` CMake Error at raft/cpp/build/latest/raft-targets.cmake:56 (set_target_properties): The link interface of target "raft::raft" contains: hnswlib::hnswlib but the target was not found. Possible reasons include: * There is a typo in the target name. * A find_package call is missing for an IMPORTED target. * An ALIAS target is missing. ``` Authors: - Paul Taylor (https://github.com/trxcllnt) Approvers: - Corey J. Nolet (https://github.com/cjnolet) - Bradley Dice (https://github.com/bdice) - Vyas Ramasubramani (https://github.com/vyasr) URL: #2145
- Loading branch information