mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-03-15 19:31:43 +00:00
[chore][cmake] update CMAKE_SYSTEM_NAME
This commit is contained in:
parent
e17398bba6
commit
f5fb0222c4
1 changed files with 10 additions and 0 deletions
|
@ -2,6 +2,16 @@ if(NOT DEFINED ENV{BL_SDK_BASE})
|
||||||
message( "please set BL_SDK_BASE in your system environment")
|
message( "please set BL_SDK_BASE in your system environment")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(MINGW OR CYGWIN OR WIN32)
|
||||||
|
SET(CMAKE_SYSTEM_NAME Generic)
|
||||||
|
elseif(UNIX)
|
||||||
|
SET(CMAKE_SYSTEM_NAME Linux)
|
||||||
|
elseif(APPLE)
|
||||||
|
SET(CMAKE_SYSTEM_NAME Darwin)
|
||||||
|
endif()
|
||||||
|
SET(CMAKE_SYSTEM_VERSION 1)
|
||||||
|
set(CMAKE_SYSTEM_PROCESSOR RISCV)
|
||||||
|
|
||||||
set(BL_SDK_BASE $ENV{BL_SDK_BASE})
|
set(BL_SDK_BASE $ENV{BL_SDK_BASE})
|
||||||
|
|
||||||
set(build_dir ${CMAKE_CURRENT_BINARY_DIR}/build_out)
|
set(build_dir ${CMAKE_CURRENT_BINARY_DIR}/build_out)
|
||||||
|
|
Loading…
Add table
Reference in a new issue