From e97d5947dc00f148ec2c9b9b57557d3d2ccb1b96 Mon Sep 17 00:00:00 2001 From: Shang Zhizhou Date: Fri, 15 Jan 2021 10:26:23 +0800 Subject: [PATCH] fix jetson compile error (#30378) (#30436) --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7dc023b43b..00b034a765 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -258,6 +258,10 @@ if(WITH_AMD_GPU) include(hip) endif(WITH_AMD_GPU) +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") -- GitLab