Skip to content

Commit

Permalink
Use generator expression to get public header files
Browse files Browse the repository at this point in the history
  • Loading branch information
krazijames committed Oct 4, 2024
1 parent f1f58c2 commit 3ec04f8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions static_lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 $<TARGET_PROPERTY:onnxruntime,PUBLIC_HEADER>
TYPE INCLUDE
)

Expand Down

0 comments on commit 3ec04f8

Please sign in to comment.