From 89cc8e4410f729a11b301e0129597f942b61c0a0 Mon Sep 17 00:00:00 2001 From: WolframRhodium Date: Sat, 27 Apr 2024 12:28:48 +0800 Subject: [PATCH] vstrt: fix long path support on windows --- vstrt/CMakeLists.txt | 1 + vstrt/{trtexec/trtexec.manifest => longpath.manifest} | 0 vstrt/trtexec/CMakeLists.txt | 2 +- 3 files changed, 2 insertions(+), 1 deletion(-) rename vstrt/{trtexec/trtexec.manifest => longpath.manifest} (100%) diff --git a/vstrt/CMakeLists.txt b/vstrt/CMakeLists.txt index 212a48f..5ea54b9 100644 --- a/vstrt/CMakeLists.txt +++ b/vstrt/CMakeLists.txt @@ -13,6 +13,7 @@ set(TENSORRT_LIBRARY_SUFFIX "" CACHE STRING "TensorRT library suffix") FIND_PACKAGE(CUDAToolkit REQUIRED) add_library(vstrt SHARED + $<$: longpath.manifest> vs_tensorrt.cpp win32.cpp ) diff --git a/vstrt/trtexec/trtexec.manifest b/vstrt/longpath.manifest similarity index 100% rename from vstrt/trtexec/trtexec.manifest rename to vstrt/longpath.manifest diff --git a/vstrt/trtexec/CMakeLists.txt b/vstrt/trtexec/CMakeLists.txt index 482ba83..5f9d91d 100644 --- a/vstrt/trtexec/CMakeLists.txt +++ b/vstrt/trtexec/CMakeLists.txt @@ -8,7 +8,7 @@ set(TENSORRT_LIBRARY_SUFFIX "" CACHE STRING "TensorRT library suffix") find_package(CUDAToolkit REQUIRED) add_executable(trtexec - $<$: trtexec.manifest> + $<$: longpath.manifest> trtexec.cpp logfile.cpp ../common/bfloat16.cpp