mirror of
https://github.com/opencv/opencv.git
synced 2024-12-12 15:19:11 +08:00
11 lines
453 B
CMake
11 lines
453 B
CMake
|
set(CMAKE_SYSTEM_NAME Linux)
|
||
|
set(CMAKE_SYSTEM_PROCESSOR riscv64)
|
||
|
|
||
|
set(RISCV_GCC_INSTALL_ROOT $ENV{RISCV} CACHE PATH "Path to GCC for RISC-V cross compiler installation directory")
|
||
|
|
||
|
set(CMAKE_C_COMPILER ${RISCV_GCC_INSTALL_ROOT}/bin/riscv64-linux-gcc)
|
||
|
set(CMAKE_CXX_COMPILER ${RISCV_GCC_INSTALL_ROOT}/bin/riscv64-linux-g++)
|
||
|
|
||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=rv64gc -mext-dsp")
|
||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=rv64gc -mext-dsp")
|