Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: can block the installation using an environment variable #68

Merged
merged 1 commit into from
Nov 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
ci: can block the installation using an environment variable
kibae committed Nov 2, 2024
commit bd25c5233bd273f43b8ddd04ce848b8ab2b6ed54
22 changes: 12 additions & 10 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -95,13 +95,15 @@ if (NOT NO_ONNXRUNTIME_SERVER_TEST)
endif ()

# install
set_target_properties(onnxruntime_server_standalone PROPERTIES OUTPUT_NAME ${PROJECT_NAME})
set_target_properties(${PROJECT_NAME}_static PROPERTIES OUTPUT_NAME ${PROJECT_NAME})

install(TARGETS onnxruntime_server_standalone DESTINATION bin)
install(TARGETS ${PROJECT_NAME} DESTINATION lib)
install(TARGETS ${PROJECT_NAME}_static DESTINATION lib RENAME ${PROJECT_NAME})
install(FILES onnxruntime_server.hpp DESTINATION include)
install(FILES transport/http/http_server.hpp DESTINATION include/transport/http)
install(FILES transport/tcp/tcp_server.hpp DESTINATION include/transport/tcp)
install(DIRECTORY utils DESTINATION include/utils)
if (NOT NO_ONNXRUNTIME_SERVER_INSTALL)
set_target_properties(onnxruntime_server_standalone PROPERTIES OUTPUT_NAME ${PROJECT_NAME})
set_target_properties(${PROJECT_NAME}_static PROPERTIES OUTPUT_NAME ${PROJECT_NAME})

install(TARGETS onnxruntime_server_standalone DESTINATION bin)
install(TARGETS ${PROJECT_NAME} DESTINATION lib)
install(TARGETS ${PROJECT_NAME}_static DESTINATION lib RENAME ${PROJECT_NAME})
install(FILES onnxruntime_server.hpp DESTINATION include)
install(FILES transport/http/http_server.hpp DESTINATION include/transport/http)
install(FILES transport/tcp/tcp_server.hpp DESTINATION include/transport/tcp)
install(DIRECTORY utils DESTINATION include/utils)
endif ()