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

build_system: build tinyxml2 statically #386

Merged
merged 6 commits into from
May 9, 2018
Merged

Conversation

JonasVautherin
Copy link
Collaborator

Build tinyxml2 statically (to fix the build for iOS).

It may look a bit hacky, but I did not want to pollute the whole scope with options set only for tinyxml2. One alternative would be to fork tinyxml2 and modify its CMakeLists.txt, and another one would be to not build tinyxml2 as a submodule (I would like to do that at some point, some kind of "super-build" scheme).

At least it is contained into cmake/tinyxml2.cmake for now.

@julianoes let me know if you think we should link it dynamically for some platforms.

Copy link
Collaborator

@julianoes julianoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fine like this but we need to fix the Windows build.

SITL autostart is not working on Windows, so we might as well warn.
Also, it's good practice to use they keyword override.
@JonasVautherin
Copy link
Collaborator Author

Haha, now the tests are all inverted. Just need to keep the best of both solutions 😅.

@julianoes julianoes merged commit a8d3837 into develop May 9, 2018
@julianoes julianoes deleted the build-tinyxml-statically branch May 9, 2018 16:54
rt-2pm2 pushed a commit to rt-2pm2/DronecodeSDK that referenced this pull request Nov 27, 2018
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