mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-12-22 19:39:22 +00:00
17 lines
418 B
CMake
17 lines
418 B
CMake
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
set(CMAKE_C_STANDARD 11)
|
|
set(CMAKE_C_STANDARD_REQUIRED ON)
|
|
|
|
if(NOT ARCH_ID)
|
|
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "")
|
|
set(CMAKE_SYSTEM_PROCESSOR ${CMAKE_HOST_SYSTEM_PROCESSOR})
|
|
endif()
|
|
string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" ARCH_ID)
|
|
endif()
|
|
|
|
if (ARCH_ID MATCHES "^(aarch64|arm64|armv8-a)$")
|
|
set(ARMv8 1)
|
|
endif()
|