From 5bd3698a98d6ca5e3974bc8f5255e6369163be3b Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Wed, 26 Jun 2019 18:35:16 +0200 Subject: [PATCH] unset DYNAMIC_ARCH in cmake cache if unsupported simply unsetting it in the current context does nothing --- cmake/arch.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/arch.cmake b/cmake/arch.cmake index b4547b7c9..5a7434551 100644 --- a/cmake/arch.cmake +++ b/cmake/arch.cmake @@ -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 ()