If Petsc option is not set then remove CMFD tests

This commit is contained in:
Bryan Herman 2014-02-24 23:08:59 -05:00
parent 6cad5af528
commit 6124f2d12f

View file

@ -231,12 +231,12 @@ enable_testing()
file(GLOB_RECURSE TESTS ${CMAKE_CURRENT_SOURCE_DIR}/../tests/test_*.py)
# Check to see if PETSC is compiled for CMFD tests
if (${PETSC_ENABLED} EQUAL FALSE)
if (NOT ${PETSC_ENABLED})
file(GLOB_RECURSE CMFD_TESTS ${CMAKE_CURRENT_SOURCE_DIR}/../tests/test_cmfd*.py)
foreach(cmfd_test in ${CMFD_TESTS})
list(REMOVE_ITEM TESTS ${cmfd_test})
endforeach(cmfd_test)
endif(${PETSC_ENABLED} EQUAL FALSE)
endif(NOT ${PETSC_ENABLED})
# Loop through all the tests
foreach(test ${TESTS})