summaryrefslogtreecommitdiffstats
path: root/cmake/arch.cmake
blob: fe488c207d8c110ed73b74af1a0eb57635a3e66e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
include(CheckCSourceCompiles)

check_c_source_compiles("
#ifndef __i386__
#error not x86
#endif

int main() {return 0;}
" ARCH_X86)

check_c_source_compiles("
#ifndef __x86_64__
#error not x86_64
#endif

int main() {return 0;}
" ARCH_X86_64)