-
-
Notifications
You must be signed in to change notification settings - Fork 365
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
Have an option to install either static or dynamic library #685
Comments
The install target should only build and install the dynamic library, not the static ones. Are you sure it builds both for you? |
I misspoke at the end of my first comment. If I choose to "install" after I built the static library, it builds and installs the dynamic library, which is not what I'd like. The install target should either install the dynamic or the static library, depending on how the project was generated with CMake. |
OK I see. I think a preliminary step for this would be to bundle the static libraries of submodules into the static library of libdatachannel. |
Great, thanks! I'll keep an eye on this |
@paullouisageneau I think this is still an issue, has any development been made? I'm currently able to build the static library just fine with I suppose I could manually copy everything needed for the static install, but I wanted to check if there's an 'official' way to do this. |
Forgot to mention that trying
Does not find anything either. |
The change introduced in #1274 makes the The You simply have to run:
Then you can import it with:
You have to provide the same OpenSSL version as during the build since static libraries are linked only when linking the executable. |
#1287 seems to have fixed my issue with the static build. I think this issue can be closed once that PR is merged. |
It would be great to have the option to install either the static or the dynamic library version.
Since there are two different CMake targets, it's already possible to build either one, but the install target automatically builds both, we have no choice.
The text was updated successfully, but these errors were encountered: