summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-01-18 19:23:42 (GMT)
committerBrad King <brad.king@kitware.com>2024-01-18 19:27:29 (GMT)
commit5eb26fb943b25b13cd8f98739da894593e778f28 (patch)
tree5deba3eb7114294927d9144aa5d208ee63091398 /Tests
parentaf85fa7ac1a37ba063b375893ad4ecdd66d260bf (diff)
downloadCMake-5eb26fb943b25b13cd8f98739da894593e778f28.zip
CMake-5eb26fb943b25b13cd8f98739da894593e778f28.tar.gz
CMake-5eb26fb943b25b13cd8f98739da894593e778f28.tar.bz2
Tests: Fix CudaOnly.Toolkit coverage of npp libs
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CudaOnly/Toolkit/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CudaOnly/Toolkit/CMakeLists.txt b/Tests/CudaOnly/Toolkit/CMakeLists.txt
index b2694bf..df1c44c 100644
--- a/Tests/CudaOnly/Toolkit/CMakeLists.txt
+++ b/Tests/CudaOnly/Toolkit/CMakeLists.txt
@@ -57,7 +57,7 @@ set(npp_libs nppc nppial nppicc nppidei nppif nppig nppim nppist nppitc npps npp
if(CUDAToolkit_VERSION_MAJOR VERSION_LESS 11)
list(APPEND npp_libs nppicom)
endif()
-foreach (cuda_lib )
+foreach (cuda_lib IN LISTS npp_libs)
if(NOT CUDA_${cuda_lib}_LIBRARY)
message(FATAL_ERROR "expected CUDAToolkit variable CUDA_${cuda_lib}_LIBRARY not found")
elseif(CUDA_${cuda_lib}_LIBRARY MATCHES [[\.\./]])