Merge pull request #1309 from phcoder/cmake2

ctr.cmake: Add more variable for AR and RANLIB
This commit is contained in:
Autechre 2020-03-24 12:01:16 +01:00 committed by GitHub
commit d8c4c422a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,11 @@
set(CMAKE_C_COMPILER "$ENV{DEVKITARM}/bin/arm-none-eabi-gcc")
set(CMAKE_CXX_COMPILER "$ENV{DEVKITARM}/bin/arm-none-eabi-g++")
set(CMAKE_AR "$ENV{DEVKITARM}/bin/arm-none-eabi-gcc-ar")
set(CMAKE_C_COMPILER_AR "$ENV{DEVKITARM}/bin/arm-none-eabi-gcc-ar")
set(CMAKE_CXX_COMPILER_AR "$ENV{DEVKITARM}/bin/arm-none-eabi-gcc-ar")
set(CMAKE_RANLIB "$ENV{DEVKITARM}/bin/arm-none-eabi-gcc-ranlib")
set(CMAKE_C_COMPILER_RANLIB "$ENV{DEVKITARM}/bin/arm-none-eabi-gcc-ranlib")
set(CMAKE_CXX_COMPILER_RANLIB "$ENV{DEVKITARM}/bin/arm-none-eabi-gcc-ranlib")
set(CMAKE_SYSTEM_PROCESSOR armv6k)
set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_CROSSCOMPILING ON)