diff --git a/Tests/Amr/Advection_AmrLevel/CMakeLists.txt b/Tests/Amr/Advection_AmrLevel/CMakeLists.txt index 95d35436af3..443619455e1 100644 --- a/Tests/Amr/Advection_AmrLevel/CMakeLists.txt +++ b/Tests/Amr/Advection_AmrLevel/CMakeLists.txt @@ -1,3 +1,7 @@ +if (NOT AMReX_AMRLEVEL) + return() +endif () + foreach(D IN LISTS AMReX_SPACEDIM) if (D EQUAL 1) continue() diff --git a/Tests/EB/CNS/CMakeLists.txt b/Tests/EB/CNS/CMakeLists.txt index 4f4a9d51f93..2a289dfa4ab 100644 --- a/Tests/EB/CNS/CMakeLists.txt +++ b/Tests/EB/CNS/CMakeLists.txt @@ -1,3 +1,7 @@ +if (NOT AMReX_AMRLEVEL) + return() +endif () + if (NOT (3 IN_LIST AMReX_SPACEDIM) OR NOT CMAKE_Fortran_COMPILER_LOADED) return() endif () diff --git a/Tests/EB_CNS/CMakeLists.txt b/Tests/EB_CNS/CMakeLists.txt index 5cd0e0b577d..932f1b93f4c 100644 --- a/Tests/EB_CNS/CMakeLists.txt +++ b/Tests/EB_CNS/CMakeLists.txt @@ -1,3 +1,7 @@ +if (NOT AMReX_AMRLEVEL) + return() +endif () + foreach(D IN LISTS AMReX_SPACEDIM) set(_sources main.cpp CNS_advance.cpp CNS_advance_box.cpp CNS_advance_box_eb.cpp CNS_bcfill.cpp CNSBld.cpp CNS.cpp CNS.H CNS_derive.cpp CNS_derive.H CNS_index_macros.H CNS_init_eb2.cpp CNS_io.cpp diff --git a/Tests/GPU/CNS/CMakeLists.txt b/Tests/GPU/CNS/CMakeLists.txt index 9e037ee86d7..0e1a472bae7 100644 --- a/Tests/GPU/CNS/CMakeLists.txt +++ b/Tests/GPU/CNS/CMakeLists.txt @@ -1,3 +1,7 @@ +if (NOT AMReX_AMRLEVEL) + return() +endif () + if (NOT 3 IN_LIST AMReX_SPACEDIM) return() endif ()