Hi,
In tensorrt 10.13, the header file is like this:
#define TRT_MAJOR_ENTERPRISE 10
#define TRT_MINOR_ENTERPRISE 13
#define TRT_PATCH_ENTERPRISE 3
#define TRT_BUILD_ENTERPRISE 9
#define NV_TENSORRT_MAJOR TRT_MAJOR_ENTERPRISE //!< TensorRT major version.
#define NV_TENSORRT_MINOR TRT_MINOR_ENTERPRISE //!< TensorRT minor version.
#define NV_TENSORRT_PATCH TRT_PATCH_ENTERPRISE //!< TensorRT patch version.
#define NV_TENSORRT_BUILD TRT_BUILD_ENTERPRISE //!< TensorRT build number.
then the current code
https://github.com/tier4/tensorrt_cmake_module/blob/4e64608db5c500df97b01bb13655142eb0a4e346/cmake/Modules/FindTENSORRT.cmake#L37C1-L42C65
string(REGEX MATCH "define NV_TENSORRT_MAJOR ([0-9]+)" _ "${TENSORRT_H_CONTENTS}")
set(TENSORRT_VERSION_MAJOR ${CMAKE_MATCH_1} CACHE INTERNAL "")
string(REGEX MATCH "define NV_TENSORRT_MINOR ([0-9]+)" _ "${TENSORRT_H_CONTENTS}")
set(TENSORRT_VERSION_MINOR ${CMAKE_MATCH_1} CACHE INTERNAL "")
string(REGEX MATCH "define NV_TENSORRT_PATCH ([0-9]+)" _ "${TENSORRT_H_CONTENTS}")
set(TENSORRT_VERSION_PATCH ${CMAKE_MATCH_1} CACHE INTERNAL "")
can not handle the version string
Hi,
In tensorrt 10.13, the header file is like this:
then the current code
https://github.com/tier4/tensorrt_cmake_module/blob/4e64608db5c500df97b01bb13655142eb0a4e346/cmake/Modules/FindTENSORRT.cmake#L37C1-L42C65
can not handle the version string