-
Notifications
You must be signed in to change notification settings - Fork 213
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
Why no static build / how to build against static dependencies? #300
Comments
I haven't tested it works but if you disable the explicit check for
|
When this was initially written, the intent was for the library to be as plug and play as possible for those using the API, this meant that I wanted as few required If I were to make the same decision today, I would use the utilities provided by CMake to make this as easy as possible for API users to use. AFAICT: other than the missing |
This ties in with what I'd thought too, I hacked a static build (but didn't test it) with only a couple of lines linked to |
Just want to comment that because of this issue I am unable to use this library. |
Any way of going forward with an important legacy Visual Studio 2013 Win32 application expecting a static lib? |
I am getting SimpleAmqpClient to work with vcpkg (based on #291) and I have it building using standard options but we use a custom triplet (static build, dynamic linking to CRT).
I get the error:
We have dozens of dependencies (including boost, openssl, other common ones) and they all build statically, we can't change our setup to dynamic builds.
Is there a way to build this library dynamically but all the dependencies as static?
Why is static building not supported? All the dependencies appear to build just fine including Rabbitmq-c so I'm curious why it is explicitly blocked in CMakeLists in the first place (
SimpleAmqpClient/CMakeLists.txt
Line 89 in e474a06
I would have guessed it's due to a dependency but like I say, they all seem to build without problems. @prateek9623 don't suppose you have any ideas since you wrote the PR? I used your PR as a patch in a new vcpkg port.
The text was updated successfully, but these errors were encountered: