We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ba20fe commit cf90993Copy full SHA for cf90993
cmake/HPX_SetupCUDA.cmake
@@ -5,7 +5,7 @@
5
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6
7
8
-if(HPX_WITH_CUDA)
+if(HPX_WITH_CUDA AND NOT TARGET hpx::cuda)
9
10
find_package(CUDA REQUIRED)
11
set(HPX_WITH_COMPUTE ON)
@@ -61,7 +61,6 @@ if(HPX_WITH_CUDA)
61
endif()
62
target_link_libraries(hpx::cuda INTERFACE cudart)
63
64
- target_link_libraries(hpx_base_libraries INTERFACE hpx::cuda)
65
+ target_link_libraries(hpx_base_libraries INTERFACE hpx::cuda)
66
67
-
0 commit comments