Commit 49c90c0c authored by Praetorius, Simon's avatar Praetorius, Simon

Update CMakeLists.txt for backward compatibility.

parent 323f22f9
...@@ -16,6 +16,7 @@ endif () ...@@ -16,6 +16,7 @@ endif ()
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# some options to control the build process # 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_MPI "Compile with MPI compiler and library" false)
option(ENABLE_UMFPACK "Enable support for the UMFPACK solver" true) option(ENABLE_UMFPACK "Enable support for the UMFPACK solver" true)
option(ENABLE_EXTENSIONS "Use extensions for AMDiS" false) option(ENABLE_EXTENSIONS "Use extensions for AMDiS" false)
...@@ -23,10 +24,6 @@ option(ENABLE_HYPRE "Use HYPRE AMG solver" false) ...@@ -23,10 +24,6 @@ option(ENABLE_HYPRE "Use HYPRE AMG solver" false)
option(ENABLE_PNG "Use png reader/writer" false) option(ENABLE_PNG "Use png reader/writer" false)
include(CMakeDependentOption) include(CMakeDependentOption)
cmake_dependent_option(ENABLE_PARALLEL_DOMAIN
"Use parallel domain decomposition" true
"ENABLE_MPI" false)
# additional options for parallel_domain # additional options for parallel_domain
# { # {
cmake_dependent_option(ENABLE_ZOLTAN cmake_dependent_option(ENABLE_ZOLTAN
...@@ -72,6 +69,7 @@ endif (MSVC) ...@@ -72,6 +69,7 @@ endif (MSVC)
# parallel of sequential version # parallel of sequential version
if (ENABLE_PARALLEL_DOMAIN) if (ENABLE_PARALLEL_DOMAIN)
set(ENABLE_MPI CACHE BOOL "Compile with MPI compiler and library" FORCE)
set(POSTFIX "-p") set(POSTFIX "-p")
else () else ()
set(POSTFIX "-s") set(POSTFIX "-s")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment