Skip to content

Commit

Permalink
only build CUDA example if PaRSEC found CUDA
Browse files Browse the repository at this point in the history
if CUDA support was disabled in PaRSEC this will still build the example
  • Loading branch information
evaleev authored Jul 17, 2023
1 parent c861751 commit 5ef42cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/madness/world/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ if(BUILD_TESTING)

add_unittests(world "${WORLD_TEST_SOURCES}" "MADworld;MADgtest" "unittests;short")

find_package(CUDA)
if (TARGET PaRSEC::parsec AND CUDA_FOUND)
if (TARGET PaRSEC::parsec AND PARSEC_HAVE_CUDA)
CMAKE_PUSH_CHECK_STATE()
STRING(REPLACE "-std=c++1z" "" _tmp "${CMAKE_CXX_FLAGS}")
SET(CMAKE_CXX_FLAGS "${_tmp}")
Expand Down

0 comments on commit 5ef42cf

Please sign in to comment.