Skip to content
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

MacOS: cmake-built libraries produce linker warnings #1789

Open
excaliburtb opened this issue Sep 27, 2024 · 1 comment
Open

MacOS: cmake-built libraries produce linker warnings #1789

excaliburtb opened this issue Sep 27, 2024 · 1 comment

Comments

@excaliburtb
Copy link
Contributor

this isn't actually a Trick issue, I'm just trying to spread the word on something I observed on latest MacOS 14.7.

packages that build using cmake on Mac may start seeing the linker warning:
ld: warning: object file (/Users/tbrain/repos/groot/IDF/build/libidf.a[88](hidapi.o)) was built for newer 'macOS' version (14.7) than being linked (14.0)

not sure when it started but cmake started automatically adding the compiler switch -mmacosx-version-min=14.7. it seems that when compiling with Trick and without a specified macosx-version-min value it resorts to 14.0. the easiest fix I found so far is for users to add:
set(CMAKE_OSX_DEPLOYMENT_TARGET "" CACHE STRING "Force unset of the deployment target for iOS" FORCE)
to their cmake scripts especially if detecting a trick build. There may be better solutions...

@sharmeye
Copy link
Contributor

sharmeye commented Oct 1, 2024

Thanks for bringing this to our attention so we won't be surprised

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants