From 3bafa3a9fa22a26509c6e2eacaa07e67725c6533 Mon Sep 17 00:00:00 2001 From: Sam Reeve <6740307+streeve@users.noreply.github.com> Date: Fri, 22 Sep 2023 10:53:04 -0400 Subject: [PATCH] Remove error if Cajita not enabled (will still fail if not found) --- CMakeLists.txt | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4d44ab24..ea66af76 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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} )