Skip to content

Commit eab1602

Browse files
committed
Use time instead of absl_time due to ABSL_ENABLE_INSTALL=ON
1 parent 58cccdd commit eab1602

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cpp/cmake_modules/ThirdpartyToolchain.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3057,8 +3057,9 @@ function(build_absl)
30573057
# This is due to upstream absl::cctz issue
30583058
# https://github.com/abseil/abseil-cpp/issues/283
30593059
find_library(CoreFoundation CoreFoundation)
3060-
# The time target (for absl::time) needs CoreFoundation on macOS
3061-
set_property(TARGET absl_time
3060+
# When ABSL_ENABLE_INSTALL is ON, the real target is "time" not "absl_time"
3061+
# Cannot use set_property on alias targets (absl::time is an alias)
3062+
set_property(TARGET time
30623063
APPEND
30633064
PROPERTY INTERFACE_LINK_LIBRARIES ${CoreFoundation})
30643065
endif()

0 commit comments

Comments
 (0)