From c379ea73b0976be5f67d59a479ce1a504a528cd0 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Tue, 25 Jun 2019 20:03:26 +0200 Subject: [PATCH] Warn and disable dynamic_arch when not supported on the architecture --- cmake/system.cmake | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmake/system.cmake b/cmake/system.cmake index c0dc308d9..ecc67174e 100644 --- a/cmake/system.cmake +++ b/cmake/system.cmake @@ -199,12 +199,15 @@ if (NEED_PIC) endif() endif () -if (X86 OR X86_64 OR ARM64 OR PPC) - if (DYNAMIC_ARCH) +if (DYNAMIC_ARCH) + if (X86 OR X86_64 OR ARM64 OR PPC) set(CCOMMON_OPT "${CCOMMON_OPT} -DDYNAMIC_ARCH") if (DYNAMIC_OLDER) set(CCOMMON_OPT "${CCOMMON_OPT} -DDYNAMIC_OLDER") endif () + else () + unset (DYNAMIC_ARCH) + message (STATUS "DYNAMIC_ARCH is not supported on the target architecture, removing") endif () endif ()