21e6fd80f7
Some checks failed
linux-arm-gcc / linux-gcc-armhf (push) Failing after 3m21s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Successful in 2m11s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Successful in 1m58s
linux-arm-gcc / linux-gcc-arm (push) Failing after 4m41s
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 1m53s
linux-x64-gcc / linux-gcc (Release) (push) Successful in 1m42s
30 lines
780 B
CMake
30 lines
780 B
CMake
set(CMAKE_SYSTEM_NAME Linux)
|
|
set(CMAKE_SYSTEM_PROCESSOR aarch64)
|
|
|
|
set(CMAKE_C_COMPILER "aarch64-linux-gnu-gcc")
|
|
set(CMAKE_CXX_COMPILER "aarch64-linux-gnu-g++")
|
|
|
|
if(NOT CMAKE_FIND_ROOT_PATH_MODE_PROGRAM)
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
endif()
|
|
if(NOT CMAKE_FIND_ROOT_PATH_MODE_LIBRARY)
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
endif()
|
|
if(NOT CMAKE_FIND_ROOT_PATH_MODE_INCLUDE)
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
|
endif()
|
|
if(NOT CMAKE_FIND_ROOT_PATH_MODE_PACKAGE)
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
|
|
endif()
|
|
|
|
set(CMAKE_C_FLAGS "-march=armv8-a")
|
|
set(CMAKE_CXX_FLAGS "-march=armv8-a")
|
|
|
|
# cache flags
|
|
set(CMAKE_C_FLAGS
|
|
"${CMAKE_C_FLAGS}"
|
|
CACHE STRING "c flags")
|
|
set(CMAKE_CXX_FLAGS
|
|
"${CMAKE_CXX_FLAGS}"
|
|
CACHE STRING "c++ flags")
|