Skip to content

Commit

Permalink
Cherry-picks for Release Candidate 2 (#1727)
Browse files Browse the repository at this point in the history
cmake: Fix RUNPATH when using BUILD_WITH_INSTALL_RPATH=True
2138590

Add absl_vlog_is_on and vlog_is_on to ABSL_INTERNAL_DLL_TARGETS
9a0743a
  • Loading branch information
derekmauro committed Jul 25, 2024
1 parent ebdba5a commit 7e5c339
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMake/AbseilDll.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ endif()
set(ABSL_INTERNAL_DLL_TARGETS
"absl_check"
"absl_log"
"absl_vlog_is_on"
"algorithm"
"algorithm_container"
"any"
Expand Down Expand Up @@ -643,6 +644,7 @@ set(ABSL_INTERNAL_DLL_TARGETS
"utility"
"variant"
"vlog_config_internal"
"vlog_is_on"
)

if(NOT MSVC)
Expand Down
7 changes: 7 additions & 0 deletions CMake/AbseilHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,13 @@ Cflags: -I\${includedir}${PC_CFLAGS}\n")
elseif(_build_type STREQUAL "static" OR _build_type STREQUAL "shared")
add_library(${_NAME} "")
target_sources(${_NAME} PRIVATE ${ABSL_CC_LIB_SRCS} ${ABSL_CC_LIB_HDRS})
if(APPLE)
set_target_properties(${_NAME} PROPERTIES
INSTALL_RPATH "@loader_path")
elseif(UNIX)
set_target_properties(${_NAME} PROPERTIES
INSTALL_RPATH "$ORIGIN")
endif()
target_link_libraries(${_NAME}
PUBLIC ${ABSL_CC_LIB_DEPS}
PRIVATE
Expand Down

0 comments on commit 7e5c339

Please sign in to comment.