未验证 提交 49e79cad 编写于 作者: S Shang Zhizhou 提交者: GitHub

fix jetson compile error (#30378)

上级 e395bcd1
......@@ -292,6 +292,10 @@ if(WITH_ROCM_PLATFORM)
include(hip)
endif(WITH_ROCM_PLATFORM)
if(WITH_NV_JETSON)
set(WITH_ARM ON CACHE STRING "Set WITH_ARM=ON when compiling WITH_NV_JETSON=ON." FORCE)
endif()
if(WITH_ARM)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册