From 2d7772304caa256533d8c0df9cc175eda38bcbf2 Mon Sep 17 00:00:00 2001 From: Markus Blatt <mblatt@dune-project.org> Date: Mon, 29 Apr 2013 14:55:25 +0000 Subject: [PATCH] [BugFix] Disable MPI if --enable-parallel is not found. Previously, this was the other way around. [[Imported from SVN: r7458]] --- lib/dunecommonam2cmake.lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dunecommonam2cmake.lib b/lib/dunecommonam2cmake.lib index a8415782b..654aa774f 100644 --- a/lib/dunecommonam2cmake.lib +++ b/lib/dunecommonam2cmake.lib @@ -21,7 +21,7 @@ dune_common_options_am2cmake() # Check for --enable-parallel and otherwise deactivate MPI echo $PARAMS | grep \\-\\-enable-parallel - if test "$?" -eq 0 ; then + if test "$?" -ne 0 ; then CMAKE_PARAMS="$CMAKE_PARAMS -DCMAKE_DISABLE_FIND_PACKAGE_MPI=TRUE" fi # Check for --disable-gxx0xcheck -- GitLab