Skip to content

Commit

Permalink
allow build with no cabana
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelyr committed Nov 3, 2023
1 parent 05e9a93 commit e67c849
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ if(ENABLE_CABANA)
bob_public_dep(Cabana)
# }
add_definitions(-DPP_ENABLE_CAB)
if(Cabana_VERSION VERSION_LESS 0.6.0)
message(FATAL_ERROR "Cabana version >= 0.6.0 required.")
endif()
endif()

set(pumipic_USE_Kokkos_DEFAULT ON)
Expand All @@ -82,10 +85,6 @@ if(Omega_h_VERSION VERSION_LESS 10.8.0)
message(FATAL_ERROR "Omega_h version >= 10.8.0 required.")
endif()

if(Cabana_VERSION VERSION_LESS 0.6.0)
message(FATAL_ERROR "Cabana version >= 0.6.0 required.")
endif()

set(debug_flag)
if (PP_ENABLE_DEBUG_SYMBOLS)
set(debug_flag "-g")
Expand Down

0 comments on commit e67c849

Please sign in to comment.