cl12: Do not mistake x86_64 platforms as x86 (#229)

This commit is contained in:
Pierre Moreau
2019-04-30 16:24:51 +02:00
committed by Kévin Petit
parent 26722c58e4
commit cb798beb56
3 changed files with 3 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ set_source_files_properties(
../../test_common/harness/errorHelpers.c
PROPERTIES LANGUAGE CXX)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)")
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86$)|(X86$)")
if(NOT CMAKE_CL_64 AND NOT MSVC AND NOT ANDROID)
# -march is needed for CPU atomics, default arch on gcc is i386
# that does not support atomics.