-
Notifications
You must be signed in to change notification settings - Fork 184
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
Don't search system paths for Boost #4723
Conversation
@@ -66,6 +66,7 @@ commence(object_library baseline) | |||
pmr.cc | |||
) | |||
find_package(Spdlog_EP REQUIRED) | |||
set(Boost_NO_SYSTEM_PATHS ON) |
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.
Beautiful.
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.
This unblocks the breakage seen before the PR and following the recent container changes.
I've opened [sc-40951] for tracking this. |
This pull request has been linked to Shortcut Story #40951: Fix find_packge(Boost ...) picking system installed versions. |
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.
The root cause of the nightly failures is that we run them with vcpkg disabled and don't have an ExternalProject that downloads Boost if not found in the system.
I might be missing something but I don't see how this PR will fix it. If Boost will not be found from the system, where will it come from?
@teo-tsirpanis We what now? This wasn't for nightlies, it was for avoiding using a system installed boost and forcing the use of the vcpkg installed version. I had no idea we were still running ExternalProject builds so that'll take some doing to fix. |
Since we added Boost in |
It would if Boost ports provided CMake config files, but they do not. See this issue for more background: microsoft/vcpkg#23460 |
@teo-tsirpanis No. See the slack thread I started. |
After looking at the documentation, |
I saw that too. But... it works? If you know how to reliably get a path for Also, my assumption is that its searching the vcpkg configured include/link directories which aren't system paths. |
I will more thoroughly look at it tomorrow. |
Title says it all.
TYPE: NO_HISTORY
DESC: Don't search system paths for Boost