From 49c90c0c41605ef4ddda7eab917e20f44e6d62c5 Mon Sep 17 00:00:00 2001 From: "Praetorius, Simon" Date: Fri, 19 Jan 2018 13:53:29 +0100 Subject: [PATCH] Update CMakeLists.txt for backward compatibility. --- AMDiS/CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/AMDiS/CMakeLists.txt b/AMDiS/CMakeLists.txt index 8f29f02f..94e92b1b 100644 --- a/AMDiS/CMakeLists.txt +++ b/AMDiS/CMakeLists.txt @@ -16,6 +16,7 @@ endif () # ------------------------------------------------------------------------------ # some options to control the build process +option(ENABLE_PARALLEL_DOMAIN "Use parallel domain decomposition" false) option(ENABLE_MPI "Compile with MPI compiler and library" false) option(ENABLE_UMFPACK "Enable support for the UMFPACK solver" true) option(ENABLE_EXTENSIONS "Use extensions for AMDiS" false) @@ -23,10 +24,6 @@ option(ENABLE_HYPRE "Use HYPRE AMG solver" false) option(ENABLE_PNG "Use png reader/writer" false) include(CMakeDependentOption) -cmake_dependent_option(ENABLE_PARALLEL_DOMAIN - "Use parallel domain decomposition" true - "ENABLE_MPI" false) - # additional options for parallel_domain # { cmake_dependent_option(ENABLE_ZOLTAN @@ -72,6 +69,7 @@ endif (MSVC) # parallel of sequential version if (ENABLE_PARALLEL_DOMAIN) + set(ENABLE_MPI CACHE BOOL "Compile with MPI compiler and library" FORCE) set(POSTFIX "-p") else () set(POSTFIX "-s") -- GitLab