Make disabling DYNAMIC_ARCH on unsupported systems work
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Sat, 6 Jul 2019 13:05:04 +0000 (15:05 +0200)
committerGitHub <noreply@github.com>
Sat, 6 Jul 2019 13:05:04 +0000 (15:05 +0200)
needs to be unset in the cache for the change to have any effect

cmake/arch.cmake

index b4547b7..5a74345 100644 (file)
@@ -81,7 +81,8 @@ if (DYNAMIC_ARCH)
   endif ()
 
   if (NOT DYNAMIC_CORE)
-    unset(DYNAMIC_ARCH)
+    message (STATUS "DYNAMIC_ARCH is not supported on this architecture, removing from options")
+    unset(DYNAMIC_ARCH CACHE)
   endif ()
 endif ()