From: maier Date: Wed, 26 Sep 2012 21:29:13 +0000 (+0000) Subject: Promote some messages to WARNING level X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c331191887f8214e2b490b404bce97e95235aba4;p=dealii-svn.git Promote some messages to WARNING level git-svn-id: https://svn.dealii.org/branches/branch_cmake@26763 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/cmake/configure/configure_metis.cmake b/deal.II/cmake/configure/configure_metis.cmake index 2df540c719..a962c23543 100644 --- a/deal.II/cmake/configure/configure_metis.cmake +++ b/deal.II/cmake/configure/configure_metis.cmake @@ -8,7 +8,7 @@ MACRO(FEATURE_METIS_FIND_EXTERNAL var) IF(METIS_FOUND AND METIS_MAJOR GREATER 4) SET(${var} TRUE) ELSE() - MESSAGE(STATUS + MESSAGE(WARNING "Could not find a sufficient modern metis installation: " "Version 5.x required!" ) diff --git a/deal.II/cmake/configure/configure_petsc.cmake b/deal.II/cmake/configure/configure_petsc.cmake index f638891809..57dd1fc9e6 100644 --- a/deal.II/cmake/configure/configure_petsc.cmake +++ b/deal.II/cmake/configure/configure_petsc.cmake @@ -16,9 +16,9 @@ MACRO(FEATURE_PETSC_FIND_EXTERNAL var) # We support petsc from version 3.x.x onwards # IF(PETSC_VERSION_MAJOR LESS 3) - MESSAGE(WARNING + MESSAGE(WARNING "\n" "Could not find a sufficient modern petsc installation: " - "Version >=3.0.0 required!" + "Version >=3.0.0 required!\n\n" ) SET(${var} FALSE) ENDIF() @@ -34,9 +34,9 @@ MACRO(FEATURE_PETSC_FIND_EXTERNAL var) IF( (PETSC_WITH_MPIUNI AND DEAL_II_COMPILER_SUPPORTS_MPI) OR (NOT PETSC_WITH_MPIUNI AND NOT DEAL_II_COMPILER_SUPPORTS_MPI)) - MESSAGE(WARNING + MESSAGE(WARNING "\n" "Could not find a sufficient petsc installation: " - "Petsc has to be configured with the same MPI configuration as deal.II." + "Petsc has to be configured with the same MPI configuration as deal.II.\n\n" ) SET(${var} FALSE) ENDIF() diff --git a/deal.II/cmake/modules/FindPETSC.cmake b/deal.II/cmake/modules/FindPETSC.cmake index 6380dffa89..f8b179d7db 100644 --- a/deal.II/cmake/modules/FindPETSC.cmake +++ b/deal.II/cmake/modules/FindPETSC.cmake @@ -193,7 +193,16 @@ IF(PETSC_FOUND) MARK_AS_ADVANCED( PETSC_LIBRARIES PETSC_INCLUDE_DIRS + PETSC_DIR + PETSC_ARCH ) +ELSE() + SET(PETSC_DIR "" CACHE STRING + "An optional hint to a PETSc directory" + ) + SET(PETSC_ARCH "" CACHE STRING + "An optional hint to a PETSc arch" + ) ENDIF() #