Skip to content

Commit

Permalink
CMake: Link CoreFoundation with -framework
Browse files Browse the repository at this point in the history
This fixes abseil#1494
  • Loading branch information
daschuer authored Jul 26, 2023
1 parent 4ff6968 commit f3ff6bc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions absl/time/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ absl_cc_library(
${ABSL_DEFAULT_COPTS}
)

if(APPLE)
find_library(CoreFoundation CoreFoundation)
endif()

absl_cc_library(
NAME
time_zone
Expand Down Expand Up @@ -85,7 +81,7 @@ absl_cc_library(
${ABSL_DEFAULT_COPTS}
DEPS
Threads::Threads
$<$<PLATFORM_ID:Darwin>:${CoreFoundation}>
$<$<PLATFORM_ID:Darwin>:-Wl,-framework,CoreFoundation>
)

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

0 comments on commit f3ff6bc

Please sign in to comment.