diff options
Diffstat (limited to 'absl')
-rw-r--r-- | absl/time/CMakeLists.txt | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/absl/time/CMakeLists.txt b/absl/time/CMakeLists.txt index 1c830c7a..e1ade7a3 100644 --- a/absl/time/CMakeLists.txt +++ b/absl/time/CMakeLists.txt @@ -54,10 +54,6 @@ absl_cc_library( ${ABSL_DEFAULT_COPTS} ) -if(APPLE) - find_library(CoreFoundation CoreFoundation) -endif() - absl_cc_library( NAME time_zone @@ -85,7 +81,9 @@ absl_cc_library( ${ABSL_DEFAULT_COPTS} DEPS Threads::Threads - $<$<PLATFORM_ID:Darwin>:${CoreFoundation}> + # TODO(#1495): Use $<LINK_LIBRARY:FRAMEWORK,CoreFoundation> once our + # minimum CMake version >= 3.24 + $<$<PLATFORM_ID:Darwin>:-Wl,-framework,CoreFoundation> ) # Internal-only target, do not depend on directly. |