]> https://gitweb.dealii.org/ - candi.git/commitdiff
check if cmake 3.10 (or above) used with deal.II v8.5.1 and outputs useful hints...
authorUwe Köcher <koecher@hsu-hamburg.de>
Tue, 6 Feb 2018 09:38:12 +0000 (10:38 +0100)
committerUwe Köcher <koecher@hsu-hamburg.de>
Tue, 6 Feb 2018 09:38:12 +0000 (10:38 +0100)
deal.II-toolchain/packages/dealii-prepare.package

index 8f5b845005bd2c86c50f3d9648039835f197b05d..0f5e24103f1608b9b676a60a7eb1a584f1469591 100644 (file)
@@ -26,4 +26,19 @@ if [ ! -z "${PACKAGES_OFF}" ]; then
     read
 fi
 
+# 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} "Your cmake version is ${CMAKE_VER_MAJOR}.${CMAKE_VER_MINOR}, which is above 3.9."
+        cecho ${INFO} "You need to switch on the cmake package in the config file!"
+        cecho ${GOOD} "Please confirm this by pressing enter ..."
+        read
+    fi
+fi
+
 PACKAGE=dealii-prepare

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.