]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Bugfix
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 25 Sep 2012 09:25:46 +0000 (09:25 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 25 Sep 2012 09:25:46 +0000 (09:25 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@26710 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/modules/FindPETSC.cmake

index 68355fbf91020923a2b61729a85413a6c881f218..b75507f8556710f107d85e07d3020c892af72f08 100644 (file)
@@ -58,7 +58,8 @@ IF("${PETSC_INCLUDE_DIR_ARCH}" STREQUAL "${PETSC_DIR}/${PETSC_ARCH}/include")
   # We found petsc and we used PETSC_DIR and PETSC_ARCH for finding it.
   # So, we assume a source tree layout:
   #
-  IF(PETSC_INCLUDE_DIRS MATCHES "-NOTFOUND")
+  IF( PETSC_INCLUDE_DIRS MATCHES "-NOTFOUND" OR
+      "${PETSC_INCLUDE_DIRS}" STREQUAL "" )
     SET(PETSC_INCLUDE_DIRS "${PETSC_INCLUDE_DIR_ARCH};${PETSC_DIR}/include"
       CACHE STRING "Include paths for petsc"
       FORCE

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.