diff --git a/fragments/compilation_flags.cmake b/fragments/compilation_flags.cmake index e7a7989077fa85d43868175ae420e18e23556fdd..095e35973f2e9853b757dce66a4d748783907dc9 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")