From 261ebe4eba1000fa080cf574aecace4790099d65 Mon Sep 17 00:00:00 2001 From: Stefan Bienert <stefan.bienert@unibas.ch> Date: Thu, 28 May 2015 15:03:43 +0200 Subject: [PATCH] Made ENABLE_MM like all the other flags --- CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2a8579091..86fc77fe4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -141,6 +141,12 @@ if (PROFILE) else() set(_PROFILE OFF) endif() +if(ENABLE_MM) + set(_OPENMM ON) +else() + set(_OPENMM OFF) +endif() + if (UBUNTU_LAYOUT) set(_UBUNTU_LAYOUT ON) @@ -237,9 +243,6 @@ endif() if(ENABLE_MM) find_package(OpenMM REQUIRED) - set(_OPENMM ON) -else() - set(_OPENMM OFF) endif() if (ENABLE_IMG) -- GitLab