From 3ec04f8bfd92b5b25967ed05e722c8e057be2f55 Mon Sep 17 00:00:00 2001 From: krazijames Date: Fri, 4 Oct 2024 18:39:15 +0900 Subject: [PATCH] Use generator expression to get public header files --- static_lib/CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/static_lib/CMakeLists.txt b/static_lib/CMakeLists.txt index 529966e..df4f697 100644 --- a/static_lib/CMakeLists.txt +++ b/static_lib/CMakeLists.txt @@ -13,10 +13,8 @@ add_subdirectory(${ONNXRUNTIME_SOURCE_DIR}/cmake onnxruntime EXCLUDE_FROM_ALL) include(bundle_static_library.cmake) bundle_static_library(${PROJECT_NAME} onnxruntime) -get_target_property(public_header onnxruntime PUBLIC_HEADER) - install( - FILES ${public_header} + FILES $ TYPE INCLUDE )