19 lines
486 B
Plaintext
19 lines
486 B
Plaintext
|
# Architecture ----------------------------------------------------------------
|
||
|
|
||
|
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||
|
set(SYSTEM_BITNESS 64)
|
||
|
set(SYSTEM_ARCH "amd64")
|
||
|
set(SYSTEM_LIB_SUFFIX "64")
|
||
|
else()
|
||
|
set(SYSTEM_BITNESS 32)
|
||
|
set(SYSTEM_ARCH "x86")
|
||
|
set(SYSTEM_LIB_SUFFIX "")
|
||
|
endif()
|
||
|
|
||
|
add_definitions(
|
||
|
-DSYSTEM_NAME="${CMAKE_SYSTEM_NAME}"
|
||
|
-DSYSTEM_BITNESS=${SYSTEM_BITNESS}
|
||
|
-DSYSTEM_ARCH_${SYSTEM_ARCH}
|
||
|
-DSYSTEM_ARCH="${SYSTEM_ARCH}"
|
||
|
)
|