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

CMake: Link CoreFoundation with -framework #1495

Closed
wants to merge 1 commit into from

Conversation

daschuer
Copy link
Contributor

This fixes #1494

With CMake 3.24 we can also use $<LINK_LIBRARY:FRAMEWORK,CoreFoundation>
but abseil is still at CMake 3.10

The change has been tested here: https://github.com/daschuer/vcpkg/actions/runs/5670741925

razmser pushed a commit to razmser/abseil-cpp that referenced this pull request Aug 31, 2023
Imported from GitHub PR abseil#1495

This fixes abseil#1494

With CMake 3.24 we can also use `$<LINK_LIBRARY:FRAMEWORK,CoreFoundation>`
but abseil is still at CMake 3.10

The change has been tested here: https://github.com/daschuer/vcpkg/actions/runs/5670741925

Merge f3ff6bc into c9c0fd5

Merging this change closes abseil#1495

COPYBARA_INTEGRATE_REVIEW=abseil#1495 from daschuer:framework-link-fix f3ff6bc
PiperOrigin-RevId: 552564485
Change-Id: I57b580e5795c54865576110e56220128d8b603b8
razmser pushed a commit to razmser/abseil-cpp that referenced this pull request Sep 12, 2023
Imported from GitHub PR abseil#1495

This fixes abseil#1494

With CMake 3.24 we can also use `$<LINK_LIBRARY:FRAMEWORK,CoreFoundation>`
but abseil is still at CMake 3.10

The change has been tested here: https://github.com/daschuer/vcpkg/actions/runs/5670741925

Merge f3ff6bc into c9c0fd5

Merging this change closes abseil#1495

COPYBARA_INTEGRATE_REVIEW=abseil#1495 from daschuer:framework-link-fix f3ff6bc
PiperOrigin-RevId: 552564485
Change-Id: I57b580e5795c54865576110e56220128d8b603b8
razmser pushed a commit to razmser/abseil-cpp that referenced this pull request Sep 12, 2023
Imported from GitHub PR abseil#1495

This fixes abseil#1494

With CMake 3.24 we can also use `$<LINK_LIBRARY:FRAMEWORK,CoreFoundation>`
but abseil is still at CMake 3.10

The change has been tested here: https://github.com/daschuer/vcpkg/actions/runs/5670741925

Merge f3ff6bc into c9c0fd5

Merging this change closes abseil#1495

COPYBARA_INTEGRATE_REVIEW=abseil#1495 from daschuer:framework-link-fix f3ff6bc
PiperOrigin-RevId: 552564485
Change-Id: I57b580e5795c54865576110e56220128d8b603b8
razmser pushed a commit to razmser/abseil-cpp that referenced this pull request Sep 14, 2023
Imported from GitHub PR abseil#1495

This fixes abseil#1494

With CMake 3.24 we can also use `$<LINK_LIBRARY:FRAMEWORK,CoreFoundation>`
but abseil is still at CMake 3.10

The change has been tested here: https://github.com/daschuer/vcpkg/actions/runs/5670741925

Merge f3ff6bc into c9c0fd5

Merging this change closes abseil#1495

COPYBARA_INTEGRATE_REVIEW=abseil#1495 from daschuer:framework-link-fix f3ff6bc
PiperOrigin-RevId: 552564485
Change-Id: I57b580e5795c54865576110e56220128d8b603b8
netkex pushed a commit to netkex/abseil-cpp that referenced this pull request Apr 3, 2024
Imported from GitHub PR abseil#1495

This fixes abseil#1494

With CMake 3.24 we can also use `$<LINK_LIBRARY:FRAMEWORK,CoreFoundation>`
but abseil is still at CMake 3.10

The change has been tested here: https://github.com/daschuer/vcpkg/actions/runs/5670741925

Merge f3ff6bc into c9c0fd5

Merging this change closes abseil#1495

COPYBARA_INTEGRATE_REVIEW=abseil#1495 from daschuer:framework-link-fix f3ff6bc
PiperOrigin-RevId: 552564485
Change-Id: I57b580e5795c54865576110e56220128d8b603b8
copybara-service bot pushed a commit that referenced this pull request Jul 11, 2024
Imported from GitHub PR #1695

#1495 converted the `if (APPLE)` check for linking against `CoreFoundation` to  generator expressions, which is fine and all.
The issue is that they forgot the other Apple platforms, making builds for iOS impossible.
This patch fixes this issue by adding the other Apple platforms that CMake support to the generator expression.
Merge 4f01df8 into 6dee153

Merging this change closes #1695

COPYBARA_INTEGRATE_REVIEW=#1695 from GeniusVentures:fix-time-build 4f01df8
PiperOrigin-RevId: 651416278
Change-Id: I47e4d52384e946cc9e421922f7c6edd5bfa1d976
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

Successfully merging this pull request may close these issues.

[Bug]: absolute path to framework using CMake config mode
1 participant