diff --git a/CMakeLists.txt b/CMakeLists.txt index 44ccd3a..62a0a02 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -136,7 +136,8 @@ if(CMAKE_C_COMPILER_IS_GCC_COMPATIBLE) # For this project, gcc needs -fPIC option on x86_64 UNIX platform if(NOT (WIN32 OR CYGWIN) AND (CMAKE_VERSION VERSION_LESS 2.8.9) - AND (${CMAKE_SYSTEM_PROCESSOR} MATCHES "i.86") + AND ((${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86") + OR (${CMAKE_SYSTEM_PROCESSOR} MATCHES "i.86")) AND (GMIO_TARGET_ARCH_BIT_SIZE EQUAL 64)) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_SHARED_LIBRARY_C_FLAGS}") endif()