-
Notifications
You must be signed in to change notification settings - Fork 771
separate between static and shared libs, make it configureable #292
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
Conversation
Not all people want to have static libs available. Furthermore it causes problem if like from libturbojpeg only a shared lib is installed in the system. Therefore make the lib-building configurable. |
The static version of tubrojpeg was not linked before too (as far i see) so i did no change in the behavior. The env BUILD_SHARED_LIBS defines only if a add_library(lib foo.cpp) result in a shared or static library. This would be the way to go if no automatic compilation (as in this project) is done. Therefore reusing this variable would be hacky from my point of view. In our project i would definitely go for a shared lib because i have control of libusb and the deps. A static lib causes problems because the system-dependancies does not provide a static version of turbojpeg. Therefore i cannot build with system-dependancies turbojpeg. I want to prevent a local compilation. |
Regarding the other prs i will have a look tomorrow. Regarding the cmake option it normally builds a shared instead of static one. In this usecase it disables/enables only the shared one Without affecting the static one. |
Automatic compilation: i mean in this project are a static and a shared one (automatically) created |
This is a policy question with several choices. To avoid further back and forth PRs, a decision is needed among the choices. For each build, it can:
|
On 16.06.2015 23:01, Lingzhu Xiang wrote:
|
If @floe and @ hanyazou agree i provide a patch which builds ONE version of the lib. The behavior can be changed by setting then the BUILD_SHARED_LIBS option. The complete cmake system in this project is a mess and we should try to keep it as close the the normal cmake behavior as possible. |
Should this merged or not, otherwise please close this.... |
I think it's been superseded by #376? Otherwise, please re-open. |
No description provided.