Skip to content

FindCUDAToolkit: Fix missing sibling include directory for CUDA math libraries

Steven Hahn requested to merge quantumsteve/cmake:math_libs_include into master

The NVHPC packages bundle the CUDA math libraries in a sibling directory (math_libs) instead of in with the rest of the CUDA libraries. Changes in !6405 (merged) accidentally omitted the sibling include directory. The merge request searches for the sibling directory and adds it to targets whose path contains "math_libs".

Do we need to check for other NVHPC layouts?

Fixes: #22706 (closed)

Edited by Brad King

Merge request reports