mirror of
https://github.com/meganz/MEGAcmd
synced 2025-08-22 01:47:24 +00:00
use uname to determine 32 bits
This commit is contained in:
parent
993ffa4677
commit
25ec40ba9d
@ -41,9 +41,25 @@ endif()
|
||||
#Override SDK's options:
|
||||
option(ENABLE_ISOLATED_GFX "Turns on isolated GFX processor" OFF)
|
||||
option(ENABLE_SDKLIB_WERROR "Enable warnings as errors" OFF)
|
||||
if(UNIX AND NOT APPLE AND NOT CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||
|
||||
if(UNIX AND NOT APPLE)
|
||||
execute_process(
|
||||
COMMAND uname -m
|
||||
OUTPUT_VARIABLE SYSTEM_ARCHITECTURE
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
message(STATUS "System Architecture: <${SYSTEM_ARCHITECTURE}>")
|
||||
if(SYSTEM_ARCHITECTURE MATCHES "^(i[3-6]86|x86)$")
|
||||
set(IS_32_BIT ON)
|
||||
else()
|
||||
set(IS_32_BIT OFF)
|
||||
endif()
|
||||
|
||||
if(NOT IS_32_BIT)
|
||||
message(STATUS "Configuring with FUSE support")
|
||||
option(WITH_FUSE "Build with FUSE support." ON)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(WITH_FUSE)
|
||||
add_compile_definitions(WITH_FUSE=1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user