From 6b16ba047a6a7ee44380fc39b50ab135fecf09c7 Mon Sep 17 00:00:00 2001 From: Loo Rong Jie Date: Sat, 25 Aug 2018 11:31:14 +0800 Subject: Convert VISIBILITY_PUBLIC to PUBLIC --- CMake/AbseilHelpers.cmake | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/CMake/AbseilHelpers.cmake b/CMake/AbseilHelpers.cmake index f64831e3..e73a2ab3 100644 --- a/CMake/AbseilHelpers.cmake +++ b/CMake/AbseilHelpers.cmake @@ -73,7 +73,7 @@ endfunction() # COPTS: List of private compile options # DEFINES: List of public defines # LINKOPTS: List of link options -# VISIBILITY_PUBLIC: Add this so that this library will be exported under absl:: (see Note). +# PUBLIC: Add this so that this library will be exported under absl:: (see Note). # TESTONLY: When added, this target will only be built if user passes -DBUILD_TESTING=ON to CMake. # # Note: @@ -99,14 +99,14 @@ endfunction() # absl_internal_awesome_lib # not "awesome_lib"! # ) # -# If VISIBILITY_PUBLIC is set, absl_cc_library will also create an alias absl::${NAME} +# If PUBLIC is set, absl_cc_library will also create an alias absl::${NAME} # for public use in addition to absl_internal_${NAME}. # # absl_cc_library( # NAME # main_lib # ... -# VISIBILITY_PUBLIC +# PUBLIC # ) # # User can then use the library as absl::main_lib (although absl_internal_main_lib is defined too). @@ -115,7 +115,7 @@ endfunction() function(absl_cc_library) cmake_parse_arguments(ABSL_CC_LIB - "DISABLE_INSTALL;VISIBILITY_PUBLIC;TESTONLY" + "DISABLE_INSTALL;PUBLIC;TESTONLY" "NAME" "HDRS;SRCS;COPTS;DEFINES;LINKOPTS;DEPS" ${ARGN} @@ -123,7 +123,6 @@ function(absl_cc_library) if (NOT ABSL_CC_LIB_TESTONLY OR ABSL_RUN_TESTS) set(_NAME "absl_internal_${ABSL_CC_LIB_NAME}") - string(TOUPPER ${_NAME} _UPPER_NAME) # Check if this is a header-only library if (ABSL_CC_LIB_SRCS) @@ -157,7 +156,7 @@ function(absl_cc_library) target_compile_definitions(${_NAME} INTERFACE ${ABSL_CC_LIB_DEFINES}) endif() - if(ABSL_CC_LIB_VISIBILITY_PUBLIC) + if(ABSL_CC_LIB_PUBLIC) add_library(absl::${ABSL_CC_LIB_NAME} ALIAS ${_NAME}) endif() endif() -- cgit v1.2.3