From 45487342bfa058f991b26f37ead8731891ce7017 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..28ac98b 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