]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Bugfix
authorMatthias Maier <tamiko@kyomu.43-1.org>
Sat, 12 Oct 2013 19:29:51 +0000 (19:29 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Sat, 12 Oct 2013 19:29:51 +0000 (19:29 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31211 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/configure/configure_1_mpi.cmake

index 0d1050a8aa0f5af8894f8d381a12d632da1a1905..26f1334e62389512cfab08b44646b1b40a1c408c 100644 (file)
@@ -85,7 +85,7 @@ MACRO(FEATURE_MPI_FIND_EXTERNAL var)
   #
   # Manually assemble some version information:
   #
-  IF(EXISTS ${MPI_INCLUDE_PATH}/mpi.h)
+  IF(EXISTS ${MPI_INCLUDE_PATH}/mpi.h AND NOT DEFINED MPI_VERSION)
     FILE(STRINGS "${MPI_INCLUDE_PATH}/mpi.h" MPI_VERSION_MAJOR_STRING
       REGEX "#define.*MPI_VERSION")
     STRING(REGEX REPLACE "^.*MPI_VERSION.*([0-9]+).*" "\\1"

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.