Skip to content

Commit

Permalink
add missing tensorrt lib search path
Browse files Browse the repository at this point in the history
  • Loading branch information
irexyc committed Apr 14, 2022
1 parent 823e08b commit 4332b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/modules/FindTENSORRT.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ set(__TENSORRT_LIB_COMPONENTS nvinfer;nvinfer_plugin)
foreach(__component ${__TENSORRT_LIB_COMPONENTS})
find_library(
__component_path ${__component}
HINTS ${TENSORRT_DIR}
HINTS ${TENSORRT_DIR} ${CUDA_TOOLKIT_ROOT_DIR}
PATH_SUFFIXES lib lib64 lib/x64)
if (NOT __component_path)
message(FATAL_ERROR "Cannot find TensorRT lib ${__component} in "
Expand Down

0 comments on commit 4332b53

Please sign in to comment.