]> https://gitweb.dealii.org/ - candi.git/commitdiff
deal.II package: abort package if deal.II v8.5.1 is tried to be configured with cmake...
authorUwe Köcher <koecher@hsu-hamburg.de>
Wed, 7 Feb 2018 10:32:57 +0000 (11:32 +0100)
committerUwe Köcher <koecher@hsu-hamburg.de>
Wed, 7 Feb 2018 10:32:57 +0000 (11:32 +0100)
deal.II-toolchain/packages/dealii.package

index 4898df7b169cbd4a18fec0485700bdb12d11e3b4..bdac9eaa7a14791a56662caf7689d33a0f3486cc 100644 (file)
@@ -29,6 +29,24 @@ CONFOPTS=" \
 -D DEAL_II_WITH_ZLIB:BOOL=ON \
 ${DEAL_CONFOPTS}"
 
+
+################################################################################
+# Check if we hit cmake-3.10+ and deal.II v8.5.1 configure error (MPI / FindMPI)
+# cf. https://github.com/dealii/dealii/issues/5510
+
+if [ ${DEAL_II_VERSION} = "v8.5.1" ]; then
+    # check for cmake version 3.10 and above
+    CMAKE_VER_MAJOR=$(cmake --version | perl -pe '($_)=/([0-9]+([.][0-9]+)+)/' | cut -d '.' -f1)
+    CMAKE_VER_MINOR=$(cmake --version | perl -pe '($_)=/([0-9]+([.][0-9]+)+)/' | cut -d '.' -f2)
+    if [ ${CMAKE_VER_MAJOR}=="3" ] && [ ${CMAKE_VER_MINOR} -gt 9 ]; then
+        cecho ${BAD} "Error: deal.II v8.5.1 can not be configured with your cmake version."
+        cecho ${BAD} "Your cmake version is ${CMAKE_VER_MAJOR}.${CMAKE_VER_MINOR}, which is above 3.9."
+        cecho ${BAD} "Please switch the cmake package in candi.cfg on and run candi again!"
+        exit 1
+    fi
+fi
+
+
 ################################################################################
 # Add additional packages, if present
 

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.