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

third_party: use fork of json11 so that it builds as a static lib #378

Merged
merged 1 commit into from
May 2, 2018

Conversation

JonasVautherin
Copy link
Collaborator

@JonasVautherin JonasVautherin commented May 2, 2018

iOS needs json11 to be built statically, and it is not made for choosing the library type in a straightforward way. So for now I just forked it and added the "STATIC" keyword. I'll try to fix that on their CMakeLists.txt and make a PR.

NOTE: locally, I had to run git submodule update --init --recursive --remote for the change to take effect.

@JonasVautherin JonasVautherin self-assigned this May 2, 2018
@JonasVautherin JonasVautherin requested a review from julianoes May 2, 2018 17:14
@julianoes
Copy link
Collaborator

and it is not made for choosing this in a straightforward way

What do you mean with that? Do we need to change it for our purposes?

@JonasVautherin
Copy link
Collaborator Author

Well, we need it static for iOS. And there is no argument in their CMakeLists for that, so it gets built as a shared library. In the fork, I make it STATIC, but the real fix would be to have an argument allowing to choose that, I believe.

@JonasVautherin
Copy link
Collaborator Author

Yeah sorry my description was very unclear. I updated it :-).

@julianoes
Copy link
Collaborator

Ok, makes sense!

@julianoes julianoes merged commit 57421d6 into develop May 2, 2018
@julianoes julianoes deleted the build-json11-static branch May 2, 2018 18:06
rt-2pm2 pushed a commit to rt-2pm2/DronecodeSDK that referenced this pull request Nov 27, 2018
third_party: use fork of json11 so that it builds as a static lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants