mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
351 B
10 lines
351 B
set(CMAKE_SYSTEM_NAME Linux) |
|
set(CMAKE_SYSTEM_VERSION 1) |
|
set(GNU_MACHINE riscv64-unknown-linux-gnu CACHE STRING "GNU compiler triple") |
|
|
|
if(NOT DEFINED CMAKE_CXX_FLAGS) # guards toolchain multiple calls |
|
set(CMAKE_C_FLAGS "-march=rv64gc") |
|
set(CMAKE_CXX_FLAGS "-march=rv64gc") |
|
endif() |
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/riscv-gnu.toolchain.cmake")
|
|
|