-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[CMake] Remove overriding CMAKE_OSX_SYSROOT
#19718
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
The internet says that newer CMake versions got more reliable in figuring out the SDK path. So setting `CMAKE_OSX_SYSROOT` ourselves is maybe not needed anymore.
I don't understand what is going on at this point. PR #18318, which introduced this code, said it was to fix build errors with CMake 4. However, the two macOS platforms that use CMake 4.0.3 ( |
Test Results 21 files 21 suites 3d 13h 32m 13s ⏱️ For more details on these failures, see this check. Results for commit 7946e41. |
This was needed because, when CMake 4 on macos-15-4 first became available, it failed to set the |
Thanks for giving the context! Do we still need it now? CMake 4.0 probably went to not setting |
Yes, I agree. If the build doesn't fail anymore. It's nice to revert to the previous behavior. |
@couet reported some failing builds post merging this on mac-beta (same error as in: https://root-forum.cern.ch/t/issue-with-macos-15-4-xcode-16-3/63327). Configuring with cc: @guitargeek |
That's strange, do you have any hint why we don't see it in the CI? |
Not clear. It is indeed strange. I (and @couet) tried a build on the same machine with the exact same configuration as the nightlies and was not able to get it to build. |
Hi @devajithvs @guitargeek . I have been debugging build failures on my Mac laptop after a recent rebase and I could trace it to this PR. With this change ROOT does not build on my laptop. Here is some info from my system
Please get in touch with me and let's try to understand the situation better. We have to avoid that this happens again to users in the wild as the error during the build is absolutely obscure. |
The internet says that newer CMake versions got more reliable in figuring out the SDK path. So setting
CMAKE_OSX_SYSROOT
ourselves is maybe not needed anymore.Follows up on #19218.