-
Notifications
You must be signed in to change notification settings - Fork 2
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
Make dependencies optional #52
Comments
Hi @Hendrik-Mueller-Overzone ,
This is a good point! I am quite busy at the moment -- would you mind making a pull request? I can review it in a timely manner, but writing & fighting CMake is a bit too much for my plate at the moment. |
Okay, I've investigated a bit and found the following points/issues: Making JSON and XML Serialization optional is not that hard, I will prepare a pull request. tl-optional and tl-expected are only used in
My approach would be to only define the C++ version, if it is not already defined and then only include the required libraries, if the defined version is below 17 or 23 respectively. I can also attempt to provide a pull request for that. While attempting to compile with version 23, I stumbled upon two other issues, which would probably need to be fixed in the code-gen.
Both changes would need to be made in the code-gen. I can provide the pull request on that repository, but I would feel more confident in a correct result, if you would update this repository with the newly generated code. |
Hi @Hendrik-Mueller-Overzone , |
@Hendrik-Mueller-Overzone just a kind reminder -- please let me know if you need any help from my side. |
Hey there,
are there plans to add build flags to disable XML (thus not requiring expat)?
Also are there plans to build in compile time checks, which C++ version is used and only requiring tl-optional and tl-expected, if they are not required?
This would allow users, that are targeting newer C++ versions and embedded targets, to keep the footprint small.
The text was updated successfully, but these errors were encountered: