Skip to content

Commit

Permalink
make 'on' for BLT TPLs sticky
Browse files Browse the repository at this point in the history
  • Loading branch information
white238 committed Mar 5, 2024
1 parent e9c33bc commit 661c316
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions cmake/BLTThirdPartyConfigFlags.cmake.in
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
set(BLT_ENABLE_CUDA @ENABLE_CUDA@)
set(BLT_ENABLE_HIP @ENABLE_HIP@)
set(BLT_ENABLE_MPI @ENABLE_MPI@)
set(BLT_ENABLE_OPENMP @ENABLE_OPENMP@)
set(BLT_ENABLE_FIND_MPI @ENABLE_FIND_MPI@)
# Always stay enabled if any upstream has already turned you on.
if(NOT BLT_ENABLE_CUDA)
set(BLT_ENABLE_CUDA @ENABLE_CUDA@)
endif()
if(NOT BLT_ENABLE_HIP)
set(BLT_ENABLE_HIP @ENABLE_HIP@)
endif()
if(NOT BLT_ENABLE_MPI)
set(BLT_ENABLE_MPI @ENABLE_MPI@)
endif()
if(NOT BLT_ENABLE_OPENMP)
set(BLT_ENABLE_OPENMP @ENABLE_OPENMP@)
endif()
if(NOT BLT_ENABLE_FIND_MPI)
set(BLT_ENABLE_FIND_MPI @ENABLE_FIND_MPI@)
endif()

# Always prefer the current project if they turned it on
if(ENABLE_CLANG_CUDA)
Expand Down

0 comments on commit 661c316

Please sign in to comment.