avoid to make ALUGRID_PARALLEL_FOUND a list

because -- at least on one of my systems -- a list evaluates to false,
even if all entries are true...
This commit is contained in:
Andreas Lauser 2013-08-24 12:41:34 +02:00 committed by Roland Kaufmann
parent 3dbcb66a21
commit 217db0dd31

View File

@ -134,17 +134,14 @@ if(ALUGRID_PARALLEL_FOUND AND MPI_FOUND)
if(NOT ALUGRID_PARALLEL_FOUND)
message(STATUS "alumetis.hh not found in ${ALUGRID_PARALLEL_INCLUDE_PATH}")
set(ALUGRID_PARALLEL_FOUND ${ALUGRID_PARALLEL_FOUND} 0)
else()
set(ALUGRID_PARALLEL_FOUND ${ALUGRID_PARALLEL_FOUND} 1)
endif()
else()
message (STATUS "METIS not found, parallel ALUGrid disabled")
set (ALUGRID_PARALLEL_FOUND ${ALUGRID_PARALLEL_FOUND} 0)
set (ALUGRID_PARALLEL_FOUND 0)
endif()
else()
message(STATUS "alumetis.hh not found (required by parallel alugrid).")
set(ALUGRID_PARALLEL_FOUND ${ALUGRID_PARALLEL_FOUND} 0)
set(ALUGRID_PARALLEL_FOUND 0)
endif()
endif()