forked from Bananymous/banan-os
19 lines
553 B
Plaintext
19 lines
553 B
Plaintext
|
if (NOT DEFINED ENV{BANAN_ARCH})
|
||
|
message(FATAL_ERROR "environment variable BANAN_ARCH not defined")
|
||
|
endif ()
|
||
|
|
||
|
set(BANAN_ARCH $ENV{BANAN_ARCH})
|
||
|
|
||
|
set(TOOLCHAIN_PREFIX ${CMAKE_SOURCE_DIR}/toolchain/local)
|
||
|
|
||
|
set(CMAKE_SYSTEM_NAME banan-os)
|
||
|
set(CMAKE_SYSTEM_PROCESSOR AMD64)
|
||
|
|
||
|
set(CMAKE_CXX_STANDARD 20)
|
||
|
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||
|
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}/bin/${BANAN_ARCH}-banan_os-g++)
|
||
|
set(CMAKE_CXX_COMPILER_WORKS True)
|
||
|
|
||
|
set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}/bin/${BANAN_ARCH}-banan_os-gcc)
|
||
|
set(CMAKE_C_COMPILER_WORKS True)
|