From 167de0fa1c6c843c5a5cbf1a6c0314b7c9302662 Mon Sep 17 00:00:00 2001 From: Pei Yang Date: Wed, 12 Feb 2020 22:15:41 +0800 Subject: [PATCH] remove copying trt to inference lib, test=develop (#22470) (#22558) --- cmake/inference_lib.cmake | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/cmake/inference_lib.cmake b/cmake/inference_lib.cmake index 81cf17eda0..7de71ff91e 100644 --- a/cmake/inference_lib.cmake +++ b/cmake/inference_lib.cmake @@ -119,13 +119,6 @@ function(copy_part_of_thrid_party TARGET DST) DSTS ${dst_dir} ${dst_dir}) endif () - if (TENSORRT_FOUND) - set(dst_dir "${DST}/third_party/install/tensorrt") - copy(${TARGET} - SRCS ${TENSORRT_INCLUDE_DIR}/Nv*.h ${TENSORRT_LIBRARY_DIR}/*nvinfer* - DSTS ${dst_dir}/include ${dst_dir}/lib) - endif () - if (LITE_BINARY_DIR) set(dst_dir "${DST}/third_party/install/lite") copy(${TARGET} @@ -277,8 +270,7 @@ function(version version_file) endif() if(TENSORRT_FOUND) file(APPEND ${version_file} - "WITH_TENSORRT: ${TENSORRT_FOUND}\n" - "TENSORRT_ROOT: ${TENSORRT_ROOT}\n") + "WITH_TENSORRT: ${TENSORRT_FOUND}\n") endif() endfunction() -- GitLab