Skip to content

Commit

Permalink
Skip headers
Browse files Browse the repository at this point in the history
Skip installing headers since we only care about the static library (and 1.14.1 apparently has different header files).
  • Loading branch information
mdepinet authored Oct 22, 2024
1 parent 4f2c731 commit df8eed0
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions static_lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,31 +28,3 @@ message(STATUS "CMAKE_CXX_FLAGS: ${CMAKE_CXX_FLAGS}")

include(bundle_static_library.cmake)
bundle_static_library(${PROJECT_NAME} onnxruntime)

install(
FILES
${ONNXRUNTIME_SOURCE_DIR}/include/onnxruntime/core/session/onnxruntime_c_api.h
${ONNXRUNTIME_SOURCE_DIR}/include/onnxruntime/core/session/onnxruntime_cxx_api.h
${ONNXRUNTIME_SOURCE_DIR}/include/onnxruntime/core/session/onnxruntime_cxx_inline.h
${ONNXRUNTIME_SOURCE_DIR}/include/onnxruntime/core/providers/cpu/cpu_provider_factory.h

${ONNXRUNTIME_SOURCE_DIR}/include/onnxruntime/core/session/onnxruntime_float16.h

${ONNXRUNTIME_SOURCE_DIR}/include/onnxruntime/core/session/onnxruntime_run_options_config_keys.h
${ONNXRUNTIME_SOURCE_DIR}/include/onnxruntime/core/session/onnxruntime_session_options_config_keys.h
${ONNXRUNTIME_SOURCE_DIR}/include/onnxruntime/core/framework/provider_options.h
TYPE INCLUDE
)
if(APPLE)
install(
FILES
${ONNXRUNTIME_SOURCE_DIR}/include/onnxruntime/core/providers/coreml/coreml_provider_factory.h
TYPE INCLUDE
)
endif()

install(
FILES ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}${PROJECT_NAME}${CMAKE_STATIC_LIBRARY_SUFFIX}
RENAME ${CMAKE_STATIC_LIBRARY_PREFIX}onnxruntime${CMAKE_STATIC_LIBRARY_SUFFIX}
TYPE LIB
)

0 comments on commit df8eed0

Please sign in to comment.