Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
foreach(flag 3dnow avx mmx sse sse2 sse3 ssse3 iwmmxt neon)
string(REGEX MATCH "${flag}" flagmatch ${sourcename})
string(TOUPPER "${flag}" upperflag)
- if("${flag}" MATCHES "(iwmmxt|neno)" AND NOT "${KATIE_ARCHITECTURE}" STREQUAL "arm")
+ if("${flagmatch}" MATCHES "(iwmmxt|neon)" AND NOT "${KATIE_ARCHITECTURE}" STREQUAL "arm")
set(flagmatch)
message(AUTHOR_WARNING "The source file ${source} is ARM specifiec, make it conditional")
endif()
- if("${flag}" STREQUAL "mmx" AND "${sourcename}" MATCHES "iwmmxt")
+ if("${flagmatch}" STREQUAL "mmx" AND "${sourcename}" MATCHES "iwmmxt")
# false positive
set(flagmatch)
endif()