From 450d3c5ea3e088b689c390c6d14f30c46ddec148 Mon Sep 17 00:00:00 2001 From: Marco Clemencic <marco.clemencic@cern.ch> Date: Thu, 16 Apr 2020 17:47:54 +0200 Subject: [PATCH] Fix handling of architecture options in compilation flags --- fragments/compilation_flags.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fragments/compilation_flags.cmake b/fragments/compilation_flags.cmake index e7a7989..095e359 100644 --- a/fragments/compilation_flags.cmake +++ b/fragments/compilation_flags.cmake @@ -23,7 +23,7 @@ string(REPLACE "_" "-" LCG_ARCHITECTURE "${LCG_ARCHITECTURE}") string(REPLACE "vecwid256" "prefer-vector-width=256" LCG_ARCHITECTURE "${LCG_ARCHITECTURE}") # - extract main arch and options if(LCG_ARCHITECTURE MATCHES "\\+") - string(REGEX MATCHALL "[^+]+" LCG_ARCHITECTURE_OPTIONS "${${_variable}_ARCH}") + string(REGEX MATCHALL "[^+]+" LCG_ARCHITECTURE_OPTIONS "${LCG_ARCHITECTURE}") # the first chunk is the actual architecture list(POP_FRONT LCG_ARCHITECTURE_OPTIONS LCG_ARCHITECTURE) list(TRANSFORM LCG_ARCHITECTURE_OPTIONS PREPEND "-m") -- GitLab