-
Notifications
You must be signed in to change notification settings - Fork 60
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
simpler boost detection on mac #396
Conversation
I don’t mind! Do you know why the CXX compiler version is set to 10 here? If I can take that out, it becomes even simpler: no more delta vs non-Mac systems. Op 3 feb. 2023 om 17:38 heeft Knute Lingaard ***@***.***> het volgende geschreven:
@knute-sifive commented on this pull request.
In sparta/cmake/sparta-config.cmake:
endif ()
+find_package (Boost 1.65.0 REQUIRED COMPONENTS ${_BOOST_COMPONENTS})
If you don't mind, let's move this to 1.76
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I tested on a few machines with ALL of that code removed -- and it worked, so yes! Please remove it all! Thanks! |
Hmm - the cleaner include path set up seems to break in CI, though it works in the systems I have access too (MacOS and WSL2 Ubuntu). Not sure how to debug that without access to a system where it fails. @knute-sifive I also noticed my WSL Ubuntu does not yet have Boost 1.76, only 1.74. Not sure which version you like to pin to? I now updated the cmake to require 1.76, but that might be overly aggressive for some distros... Not sure how this lines up with the systems you typically run on. |
I'm ok with an (slightly) older of boost if that makes standard environments work. I'm looking at the CI failures and it appears that an include path to |
I'm building now... I like the direction this PR is going, but one concern I have is with regards to the users of sparta. The purpose of the With that hope said, I think the real issue is that the I have a branch where I address that. Can you take a look at it and merge it with yours? I'm not seeing the https://github.com/sparcians/map/tree/knutel/peter-d_cmake_include_fixes |
I started a new PR: #397 to see if my changes with yours pass CI. |
Ok, I can reproduce the failure locally. Apparently I had |
Fixed the |
I fully agree - it should be as simple as an include and (maybe) a find_package (which will allow you down the line to select versions If needed) We actually made an internal
Correct, this is now indeed spread over 2 files, part in the config, part in the ```CMakeLists.txt`
I'll have a look right away! |
🤤 That would be awesome!! |
I'm slowly picking away the regression failures in the other PR and I think (🤞🏻 ) I got it working. But a fundamental question on the As an example, Sparta was built with Boost 1.71. But the modeler is using Boost 1.80. What magic keeps everything in sync? 🤔 |
Superseded by #397 |
Fix for #395, but not sure if there are no unwanted side effects, only tested on Ventura 13.1 on M1.