-
Notifications
You must be signed in to change notification settings - Fork 34
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: Add CMake option to use external expat #134
build: Add CMake option to use external expat #134
Conversation
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Hi @uilianries and thank you for your PR. There is just something I have to check on my end, I will get back to you on Monday again. |
@modelonrobinandersson Thank you! Please, take your time to validate this change, I don't want to break users 😅 |
Hi @uilianries, I just need a few more days as I am trying to sort something out on my end, I will be back as soon as possible. |
Hi again @uilianries, in order to accept contributions to FMIL there is the following requirement: https://github.com/modelon-community/contributing |
@modelonrobinandersson Hello, is it possible to send electronic signed instead? I don't have a printer. |
Hi! Yes that works as well. |
@modelonrobinandersson Hello again, I just sent the email for the CLA, but there is not technical issue on Modelon side. I opened a separated issue reporting the case: modelon-community/contributing#2 |
To be clear, I will review this, but need to finish some other work first. Will look at this when I can. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good addition. FMIL should have better dependency management and this is one step in that direction.
Things were made a bit complicated since we already have e.g. FMILIB_FIND_PACKAGE_ZLIB which behaves slightly different (bundles zlib with FMIL). But we think not doing that (like done here), and instead listing dependencies is the way forward.
I've added suggestions for most changes.
Thanks for contributing, and sorry for delay in reviewing.
Co-authored-by: Filip Stenström <filip.stenstrom@modelon.com>
Co-authored-by: Filip Stenström <filip.stenstrom@modelon.com>
Co-authored-by: Filip Stenström <filip.stenstrom@modelon.com>
Co-authored-by: Filip Stenström <filip.stenstrom@modelon.com>
@filip-stenstrom Thank you for your review. All committed all your suggestions! Please, review again when possible. Don't worry about the delay, as maintainer of open source project too, I totally understand 😉 |
Thanks, all good now. Merging. |
hi @uilianries, do you plan to do zlib/minizip too ? |
@jschueller That's possible. |
that would be great! |
Hello all!
This PR adds the CMake option
FMILIB_SYSTEM_EXPAT
, to be able to consume expat from system, provided by a package manager.The official CMake module for Expat is FindEXPAT and provides both
EXPAT_INCLUDE_DIRS
andEXPAT_LIBRARIES
.By default, this option is disabled, so it should not break users.
The entire build log using the system expat is here:
fmilib-system-expat-build.log
It's possible to see:
Related to #100