-
Notifications
You must be signed in to change notification settings - Fork 105
CMake boost super-build fixups for cmake-3.8 #1106
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
Conversation
An automated preview of the documentation is available at https://1106.json.prtest2.cppalliance.org/libs/json/doc/html/index.html |
|
I can confirm this change is sound: https://cmake.org/cmake/help/latest/manual/cmake-generator-expressions.7.html#genex:CXX_COMPILER_ID
|
To be honest, If that's all, I'm more willing to replace that one line with 3. I can do it myself, but if you want you can change the PR. |
dd873c9
to
fc2009f
Compare
I've updated the change here to support cmake-3.14 (instead of cmake-3.15). However cmake-3.13 cmake fails with
|
An automated preview of the documentation is available at https://1106.json.prtest2.cppalliance.org/libs/json/doc/html/index.html |
|
Why? It doesn't really matter what dependencies require. They state their requirements on their own, it is not the responsibly of this library. How does it get pulled in though? I don't see it as a dependency. Try |
JSON definitely does not depend on Parser. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1106 +/- ##
========================================
Coverage 93.71% 93.71%
========================================
Files 91 91
Lines 9156 9156
========================================
Hits 8581 8581
Misses 575 575 Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
The superproject cmake does seem to pulling in Parser via a GLOB in BoostRoot.cmake. cmake-3.13 does succeed with |
That glob is only for detecting available libraries. Libraries are only configured as requested. One exception is if |
https://drone.cpp.al/boostorg/json/1913/22/2 This job invokes
No Parser. Your result could be a consequence of |
Actually that is expected right now: The dependency scanner doesn't parse the test CML but just adds all other libraries with EXCLUDE_FROM_ALL and w/o installation set. But it still does add them. |
https://drone.cpp.al/boostorg/json/1916/22/2 <- this passes, which means JSON should work with CMake 3.8. However, according to boostorg/boost#1083, the minimum should be 3.9. Can you change the PR to use that? |
@grisumbras Yes, happy to make that change to cmake-3.9. |
Scratch that, according to boostorg/boost#1083 3.8 should work. So, please keep 3.8. |
Turns out that was a documentation bug and 3.8.0 does work for JSON. |
There was one more fixup needed for cmake-3.8. |
Tested in combination with boostorg/cmake#86
|
An automated preview of the documentation is available at https://1106.json.prtest2.cppalliance.org/libs/json/doc/html/index.html |
Thank you for your contribution. |
I've been on a little bit of an adventure to see what version of cmake is required for building boost.
See boostorg/boost#1081
Json needs cmake-3.15.0, otherwise it errors with: