mirror of
https://github.com/opencv/opencv.git
synced 2024-12-16 18:39:12 +08:00
10 lines
286 B
CMake
10 lines
286 B
CMake
|
# see https://gcc.gnu.org/onlinedocs/gcc/RISC-V-Options.html#index-march-14
|
||
|
function(ocv_set_platform_flags VAR)
|
||
|
if(ENABLE_RVV OR RISCV_RVV_SCALABLE)
|
||
|
set(flags "-march=rv64gcv")
|
||
|
else()
|
||
|
set(flags "-march=rv64gc")
|
||
|
endif()
|
||
|
set(${VAR} "${flags}" PARENT_SCOPE)
|
||
|
endfunction()
|