diff options
| author | Dan Ibanez <daibane@sandia.gov> | 2021-06-30 02:38:03 (GMT) |
|---|---|---|
| committer | Brad King <brad.king@kitware.com> | 2021-07-01 16:18:27 (GMT) |
| commit | d9301458417acefc4f325796b3672b5039171961 (patch) | |
| tree | e6bd65bb077560f1657aa763796f0e6bd0ada019 /Tests/Module/WriteCompilerDetectionHeader/main.cpp | |
| parent | d837efafa56c39c75de3d66c964d002a39a58301 (diff) | |
| download | CMake-d9301458417acefc4f325796b3672b5039171961.zip CMake-d9301458417acefc4f325796b3672b5039171961.tar.gz CMake-d9301458417acefc4f325796b3672b5039171961.tar.bz2 | |
FindCUDATookit: Fix ordering of libraries in imported targets
Before this a downstream code linking to `CUDA::cusparse_static` and
`CUDA::curand_static` would get a link line with `libcusparse_static.a`,
then `libculibos.a`, then `libcurand_static.a`. Use `IMPORTED_LOCATION`
to tell CMake about the proper dependency ordering where `libculibos.a`
comes last, because the other two libraries depend on `libculibos.a`.
Fixes: #22365
Diffstat (limited to 'Tests/Module/WriteCompilerDetectionHeader/main.cpp')
0 files changed, 0 insertions, 0 deletions
