-
-
Notifications
You must be signed in to change notification settings - Fork 209
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
Add USE_SHARED_OPENCV and USE_SHARED_ONNXRUNTIME options #185
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some changes to take care of
include(cmake/BuildMyOnnxruntime.cmake) | ||
include(cmake/BuildMyOpenCV.cmake) | ||
set(USE_SHARED_ONNXRUNTIME | ||
OFF |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well instead of OFF
here you can simply ${OS_LINUX}
and that will turn it on for Linux and off for the others
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant that using shared libraries is only for flatpak distribution and I want to keep the deb distribution don't require additional libraries.
I maybe want to rename the flags to USE_SYSTEM_FOO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good now
merge at will
Flatpak doesn't like ExternalProject.
This change will help us to use pre-built binaries and separately built libraries for Flatpak.
Pkgs, exe, deb will remain to use statically-linked libraries.