From: Navarrop Date: Tue, 28 Jun 2011 13:12:29 +0000 (+0200) Subject: Processor x86, i*86 is the same as i686 for raw context. X-Git-Tag: v3_6_2~205 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a7b5f10757c8d5ffacf00206d739e35d0ee5a75c Processor x86, i*86 is the same as i686 for raw context. --- diff --git a/buildtools/Cmake/CompleteInFiles.cmake b/buildtools/Cmake/CompleteInFiles.cmake index bd00df9c8b..910082aa0d 100644 --- a/buildtools/Cmake/CompleteInFiles.cmake +++ b/buildtools/Cmake/CompleteInFiles.cmake @@ -3,12 +3,18 @@ ${CMAKE_MODULE_PATH} ${CMAKE_HOME_DIRECTORY}/buildtools/Cmake/Modules ) -IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") +IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") #Intel processor 64 bits message(STATUS "System processor: amd64") set(HAVE_RAWCTX 1) +ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "x86") #Intel processor 32 bits + message(STATUS "System processor: x86") + set(PROCESSOR_i686 1) + set(HAVE_RAWCTX 1) + ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "^i.86$") IF(${ARCH_32_BITS}) + set(PROCESSOR_i686 1) message(STATUS "System processor: ${CMAKE_SYSTEM_PROCESSOR}") ELSE(${ARCH_32_BITS}) message(STATUS "System processor: amd64")