Skip to content

Commit 01f44e5

Browse files
committed
test: guard coupler_transfer behind PCMS_ENABLE_PETSC
test_coupler_transfer.cpp pulls in the PETSc-dependent transfer headers, so the target cannot compile when PETSc is disabled. Guard it like the other transfer tests (PCMS_ENABLE_PETSC AND PCMS_ENABLE_MESHFIELDS).
1 parent 15c37a7 commit 01f44e5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ if(PCMS_ENABLE_OMEGA_H)
214214
${d3d1p}
215215
ignored)
216216
endif()
217+
if(PCMS_ENABLE_PETSC AND PCMS_ENABLE_MESHFIELDS)
217218
add_executable(coupler_transfer test_coupler_transfer.cpp)
218219
target_link_libraries(coupler_transfer PUBLIC pcms::core test_support)
219220
if(HOST_NPROC GREATER_EQUAL 4)
@@ -253,6 +254,7 @@ if(PCMS_ENABLE_OMEGA_H)
253254
${d3d1p}
254255
ignored)
255256
endif()
257+
endif()
256258
if(HOST_NPROC GREATER_EQUAL 26)
257259
tri_mpi_test(
258260
TESTNAME

0 commit comments

Comments
 (0)