File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -369,7 +369,9 @@ if(ENABLE_TRT_BACKEND)
369
369
message (STATUS "Copying ${TRT_DIRECTORY} /lib to ${CMAKE_CURRENT_BINARY_DIR} /third_libs/install/tensorrt/lib ..." )
370
370
execute_process (COMMAND ${Python_EXECUTABLE} ${PROJECT_SOURCE_DIR} /scripts/copy_directory.py ${TRT_DIRECTORY} /lib ${CMAKE_CURRENT_BINARY_DIR} /third_libs/install /tensorrt/lib)
371
371
file (GLOB_RECURSE TRT_STAIC_LIBS ${CMAKE_CURRENT_BINARY_DIR} /third_libs/install /tensorrt/lib/*.a)
372
- file (REMOVE ${TRT_STAIC_LIBS} )
372
+ if (TRT_STATIC_LIBS)
373
+ file (REMOVE ${TRT_STAIC_LIBS} )
374
+ endif ()
373
375
if (UNIX AND (NOT APPLE ) AND (NOT ANDROID))
374
376
execute_process (COMMAND sh -c "ls *.so*" WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} /third_libs/install /tensorrt/lib
375
377
COMMAND sh -c "xargs ${PATCHELF_EXE} --set-rpath '$ORIGIN'" WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} /third_libs/install /tensorrt/lib
You can’t perform that action at this time.
0 commit comments