Skip to content

FindCUDAToolkit: Fix stub library representation on reconfigure

Brad King requested to merge brad.king/cmake:FindCUDAToolkit-fix-stubs into master

Since !8649 (merged) we recognize CUDA stub libraries and represent them in a special way. However, the logic only works on the first configuration of a build tree when the libraries are first found. Once the results are cached, we incorrectly revert to the non-stub representation.

Fix this by recognizing stub libraries based on their path instead.

Backport: release

Merge request reports

Loading