Skip to content

Commit 5be22ea

Browse files
committed
contrib/windows-cmake: fix source path of cuda/opencl tests
Forgotten in a54d2aa Thanks to Moritz Kreutzer. Signed-off-by: Brice Goglin <[email protected]>
1 parent 52d7cf4 commit 5be22ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/windows-cmake/tests/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ TIMEOUT 10
5252
# --- optional tests
5353

5454
if(HWLOC_HAVE_OPENCL)
55-
add_executable(test_opencl opencl.c)
55+
add_executable(test_opencl ${TOPDIR}/tests/hwloc/opencl.c)
5656
target_link_libraries(test_opencl PRIVATE hwloc OpenCL::OpenCL)
5757

5858
add_test(NAME OpenCL COMMAND test_opencl)
5959
set_tests_properties(OpenCL PROPERTIES TIMEOUT 10)
6060
endif()
6161

6262
if(HAVE_CUDA)
63-
add_executable(test_cuda cuda.c)
63+
add_executable(test_cuda ${TOPDIR}/tests/hwloc/cuda.c)
6464
target_link_libraries(test_cuda PRIVATE hwloc CUDA::cudart CUDA::cuda_driver)
6565

6666
add_test(NAME CUDA COMMAND test_cuda)

0 commit comments

Comments
 (0)