-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Build error on macOS 11.2.3+Xcode 12.4+cmake 3.19 #4286
Comments
I'd completely forgotten that I'd previously submitted 4b35a18 - vaguely similar symptoms, as I recall. And now I'm reminded of it, I remember it having to be reverted (see 45e3521), so I'm not going to attempt a fix for this issue. Just a report. I can just continue to build with Xcode 11 on my other laptop for now. Looks like #4274 might also be the same kind of thing. |
is this possibly a problem with your cmake 3.19.20201025-gd749d46 ? I'm able to build without issues on macOS 11.2.3+ and Xcode 12.4. .m files are automatically built with -ObjC |
Thanks for the suggestion - I upgraded to cmake 3.20, and it now builds. Presumably something in Xcode changed. |
In regard of #4274 it was a bit more complex. In CMake 3.19.1, it dropped language enforcement with Unfortunately, I feel requiring CMake 3.16 (was released in 2019Nov) is a bit too early and seeking workaround.. |
macOS 11.2.3
Xcode 12.4
cmake version 3.19.20201025-gd749d46
Repro steps: (commit 0f4aba7 is HEAD at time of writing)
Expected result: SDL builds
Actual result: a bunch of errors that look like it's attempting to build Objective C code as C, e.g.:
The text was updated successfully, but these errors were encountered: