Changeset 68 in flair-dev for trunk/cmake-modules/ArchDir.cmake


Ignore:
Timestamp:
Mar 6, 2018, 12:14:17 PM (3 years ago)
Author:
Sanahuja Guillaume
Message:

maj for armv5te

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmake-modules/ArchDir.cmake

    r2 r68  
    1 if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "arm")
    2         SET(ARCH_DIR "arm")
    3 elseif("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "powerpc")
    4           SET(ARCH_DIR "powerpc")
     1if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i686")
     2    message(FATAL_ERROR "i686 is not supported")
     3endif()
     4
     5if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64")
     6    SET(ARCH_DIR "x86_64/unix")
     7elseif(DEFINED CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE)
     8    SET(ARCH_DIR ${CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE})
    59else()
    6         if(WIN32)
    7                 if(MINGW)
    8                         if (CMAKE_SIZEOF_VOID_P MATCHES "8")#64 bits
    9                                 SET(ARCH_DIR "x86_64/win")
    10                         else()#32 bits
    11                                 SET(ARCH_DIR "x86/win")
    12                                 ADD_DEFINITIONS(-D__MINGW__)
    13                         endif()
    14                 else()
    15                         message(FATAL_ERROR,"only supports mingw compiler")
    16                 endif()
    17         else() 
    18                 if (CMAKE_SIZEOF_VOID_P MATCHES "8")#64 bits
    19                         SET(ARCH_DIR "x86_64/unix")
    20                 else()#32 bits
    21                         SET(ARCH_DIR "i686/unix")
    22                 endif()
    23         endif()
     10    SET(ARCH_DIR ${CMAKE_SYSTEM_PROCESSOR})
    2411endif()
Note: See TracChangeset for help on using the changeset viewer.