Skip to content

Commit

Permalink
Merge pull request #56 from streeve/remove_cajita_error
Browse files Browse the repository at this point in the history
Remove error if Cajita not enabled
  • Loading branch information
streeve authored Sep 22, 2023
2 parents c37715e + 3bafa3a commit d040a8f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,6 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
##---------------------------------------------------------------------------##
find_package(Cabana REQUIRED)

macro(CabanaPD_check_required)
cmake_parse_arguments(CABANA "" "OPTION" "" ${ARGN})
if( NOT Cabana_ENABLE_${CABANA_OPTION} )
message( FATAL_ERROR "Cabana must be compiled with ${CABANA_OPTION}" )
endif()
endmacro()

CabanaPD_check_required( OPTION MPI )
CabanaPD_check_required( OPTION CAJITA )

macro(CabanaPD_check_optional)
cmake_parse_arguments(CABANA "" "OPTION" "" ${ARGN})
if( Cabana_ENABLE_${CABANA_OPTION} )
Expand Down

0 comments on commit d040a8f

Please sign in to comment.