diff --git a/cmake/onnxruntime_providers_coreml.cmake b/cmake/onnxruntime_providers_coreml.cmake index 757198ffb651d..bf46a73e43839 100644 --- a/cmake/onnxruntime_providers_coreml.cmake +++ b/cmake/onnxruntime_providers_coreml.cmake @@ -26,7 +26,7 @@ file(GLOB coreml_proto_srcs "${COREML_PROTO_ROOT}/*.proto") onnxruntime_add_static_library(coreml_proto ${coreml_proto_srcs}) target_include_directories(coreml_proto PUBLIC $ - "${CMAKE_CURRENT_BINARY_DIR}") + $) target_compile_definitions(coreml_proto PUBLIC $) set_target_properties(coreml_proto PROPERTIES COMPILE_FLAGS "-fvisibility=hidden") @@ -42,6 +42,7 @@ onnxruntime_protobuf_generate( if (NOT onnxruntime_BUILD_SHARED_LIB) install(TARGETS coreml_proto + EXPORT ${PROJECT_NAME}Targets ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}