Skip to content

Commit db1255c

Browse files
EduMengescopybara-github
authored andcommitted
PR #1695: Fix time library build for Apple platforms
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
1 parent cd7f66c commit db1255c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

absl/time/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ absl_cc_library(
8383
Threads::Threads
8484
# TODO(#1495): Use $<LINK_LIBRARY:FRAMEWORK,CoreFoundation> once our
8585
# minimum CMake version >= 3.24
86-
$<$<PLATFORM_ID:Darwin>:-Wl,-framework,CoreFoundation>
86+
$<$<PLATFORM_ID:Darwin,iOS,tvOS,visionOS,watchOS>:-Wl,-framework,CoreFoundation>
8787
)
8888

8989
# Internal-only target, do not depend on directly.

0 commit comments

Comments
 (0)