From bf1e76e401d6cb9e39cd8a1aed2927d596d5b8e7 Mon Sep 17 00:00:00 2001 From: dzhwinter Date: Sat, 15 Sep 2018 03:44:25 +0800 Subject: [PATCH] "fix dso" (#13407) --- cmake/tensorrt.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/tensorrt.cmake b/cmake/tensorrt.cmake index ac19b165189..8f65a737c43 100644 --- a/cmake/tensorrt.cmake +++ b/cmake/tensorrt.cmake @@ -16,7 +16,9 @@ find_library(TENSORRT_LIBRARY NAMES libnvinfer.so libnvinfer.a DOC "Path to TensorRT library.") if(TENSORRT_INCLUDE_DIR AND TENSORRT_LIBRARY) + if(WITH_DSO) set(TENSORRT_FOUND ON) + endif(WITH DSO) else() set(TENSORRT_FOUND OFF) endif() -- GitLab