Skip to content

Commit bf1e76e

Browse files
authored
"fix dso" (#13407)
1 parent 40c54db commit bf1e76e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/tensorrt.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ find_library(TENSORRT_LIBRARY NAMES libnvinfer.so libnvinfer.a
1616
DOC "Path to TensorRT library.")
1717

1818
if(TENSORRT_INCLUDE_DIR AND TENSORRT_LIBRARY)
19+
if(WITH_DSO)
1920
set(TENSORRT_FOUND ON)
21+
endif(WITH DSO)
2022
else()
2123
set(TENSORRT_FOUND OFF)
2224
endif()

0 commit comments

Comments
 (0)