aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Loo Rong Jie <loorongjie@gmail.com>2018-10-10 23:15:55 +0800
committerGravatar Loo Rong Jie <loorongjie@gmail.com>2018-10-10 23:15:55 +0800
commitfc2185a7f42aa244d716fff7563e241d797d0fed (patch)
treed9768bcc1caf21eabcdd34bf48600af75ebe70d9
parenta76ceed6f68efc9efa64b7a849e9ec7e670030b2 (diff)
Use absl_ prefix for public target
-rw-r--r--CMake/AbseilHelpers.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMake/AbseilHelpers.cmake b/CMake/AbseilHelpers.cmake
index 41d66d7..1f33fd7 100644
--- a/CMake/AbseilHelpers.cmake
+++ b/CMake/AbseilHelpers.cmake
@@ -122,7 +122,11 @@ function(absl_cc_library)
)
if (NOT ABSL_CC_LIB_TESTONLY OR ABSL_RUN_TESTS)
- set(_NAME "absl_internal_${ABSL_CC_LIB_NAME}")
+ if (ABSL_CC_LIB_PUBLIC)
+ set(_NAME "absl_${ABSL_CC_LIB_NAME}")
+ else()
+ set(_NAME "absl_internal_${ABSL_CC_LIB_NAME}")
+ endif()
# Check if this is a header-only library
if (ABSL_CC_LIB_SRCS)