Skip to content

FindCUDA: Cache CUDA_TOOLKIT_ROOT_DIR when cross-compiling

Jinzhe Zeng requested to merge njzjz/cmake:njzjz-master-patch-59015 into master

Previously we cached CUDA_TOOLKIT_ROOT_DIR when building for the host, but not when cross-compiling. Make it consistent.

Topic-rename: FindCUDA-cross-compiling

Edited by Brad King

Merge request reports