-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
CMake translation handling macOS frameworks incorrectly #8045
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
Comments
Unfortunately, I don't have access to an OSX system. So, could you please provide the complete generated |
Happily! Thanks for the prompt response. |
Hm, maybe it relates to a finding of nevyn Bengtsson:
|
btw. I have the same problem without a CMake dependency. Both happen on macOS 11.0.1 and both try to use an Apple framework. I think something changed in the Apple development stack and Apple did not documented/announced it properly...
|
If framework dependencies (ie, |
If there's anything I can do to further help with this, please let me know; I have a recent fully-updated MBP handy. Additionally, if anyone knows of a workaround that doesn't involve manually editing the final linker invocation that would be much appreciated. |
Should (maybe) be fixed with #8134. @CoffeeFlux could you please test the PR on your system? |
The PR fixes the issue for me locally. No longer seeing references to the |
I'm attempting to compile cURL as a subproject and getting linker errors for the final executable. The issue appears to be the following snippet in the final linker call:
This should instead just be
-framework CoreFoundation -framework Security
, and substituting appropriately causes the build to succeed.This appears to come from the generated meson files. In
subprojects/curl/meson.build
:The equivalent CMake appears to just be something like:
I assume that macOS frameworks need to be special-cased for this to work.
Meson version: 0.56.0
CMake version: 3.19.0
MacOS version: 11.0.1
How I'm invoking the CMake module: https://github.com/TypesettingTools/ffi-experiments/blob/3b9efd7a8b4e93386e0bcbe84acf33a7a9ef8615/meson.build#L16-L41
The text was updated successfully, but these errors were encountered: