source: flair-dev/trunk/cmake-modules/ArchDir.cmake@ 43

Last change on this file since 43 was 2, checked in by Sanahuja Guillaume, 6 years ago

initial commit flaircore

File size: 592 bytes
RevLine 
[2]1if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "arm")
2 SET(ARCH_DIR "arm")
3elseif("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "powerpc")
4 SET(ARCH_DIR "powerpc")
5else()
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()
24endif()
Note: See TracBrowser for help on using the repository browser.