Skip to content

Commit

Permalink
Remove error if Cajita not enabled (will still fail if not found)
Browse files Browse the repository at this point in the history
  • Loading branch information
streeve committed Sep 22, 2023
1 parent c37715e commit 3bafa3a
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 3bafa3a

Please sign in to comment.