Skip to content

Commit

Permalink
Merge pull request #4202 from msimberg/fix-cuda-target
Browse files Browse the repository at this point in the history
Fix CUDA configuration
  • Loading branch information
msimberg authored Nov 12, 2019
2 parents 0b33f67 + cf90993 commit 3b0408f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmake/HPX_SetupCUDA.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)


if(HPX_WITH_CUDA)
if(HPX_WITH_CUDA AND NOT TARGET hpx::cuda)

find_package(CUDA REQUIRED)
set(HPX_WITH_COMPUTE ON)
Expand Down Expand Up @@ -61,7 +61,6 @@ if(HPX_WITH_CUDA)
endif()
target_link_libraries(hpx::cuda INTERFACE cudart)
endif()
target_link_libraries(hpx_base_libraries INTERFACE hpx::cuda)

target_link_libraries(hpx_base_libraries INTERFACE hpx::cuda)
endif()

0 comments on commit 3b0408f

Please sign in to comment.