Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abseil-cpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
abseil-cpp
Commits
6b16ba04
Commit
6b16ba04
authored
Aug 25, 2018
by
Loo Rong Jie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert VISIBILITY_PUBLIC to PUBLIC
parent
67058cbb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
CMake/AbseilHelpers.cmake
+5
-6
No files found.
CMake/AbseilHelpers.cmake
View file @
6b16ba04
...
@@ -73,7 +73,7 @@ endfunction()
...
@@ -73,7 +73,7 @@ endfunction()
# COPTS: List of private compile options
# COPTS: List of private compile options
# DEFINES: List of public defines
# DEFINES: List of public defines
# LINKOPTS: List of link options
# 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.
# TESTONLY: When added, this target will only be built if user passes -DBUILD_TESTING=ON to CMake.
#
#
# Note:
# Note:
...
@@ -99,14 +99,14 @@ endfunction()
...
@@ -99,14 +99,14 @@ endfunction()
# absl_internal_awesome_lib # not "awesome_lib"!
# 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}.
# for public use in addition to absl_internal_${NAME}.
#
#
# absl_cc_library(
# absl_cc_library(
# NAME
# NAME
# main_lib
# main_lib
# ...
# ...
#
VISIBILITY_
PUBLIC
# PUBLIC
# )
# )
#
#
# User can then use the library as absl::main_lib (although absl_internal_main_lib is defined too).
# User can then use the library as absl::main_lib (although absl_internal_main_lib is defined too).
...
@@ -115,7 +115,7 @@ endfunction()
...
@@ -115,7 +115,7 @@ endfunction()
function
(
absl_cc_library
)
function
(
absl_cc_library
)
cmake_parse_arguments
(
ABSL_CC_LIB
cmake_parse_arguments
(
ABSL_CC_LIB
"DISABLE_INSTALL;
VISIBILITY_
PUBLIC;TESTONLY"
"DISABLE_INSTALL;PUBLIC;TESTONLY"
"NAME"
"NAME"
"HDRS;SRCS;COPTS;DEFINES;LINKOPTS;DEPS"
"HDRS;SRCS;COPTS;DEFINES;LINKOPTS;DEPS"
${
ARGN
}
${
ARGN
}
...
@@ -123,7 +123,6 @@ function(absl_cc_library)
...
@@ -123,7 +123,6 @@ function(absl_cc_library)
if
(
NOT ABSL_CC_LIB_TESTONLY OR ABSL_RUN_TESTS
)
if
(
NOT ABSL_CC_LIB_TESTONLY OR ABSL_RUN_TESTS
)
set
(
_NAME
"absl_internal_
${
ABSL_CC_LIB_NAME
}
"
)
set
(
_NAME
"absl_internal_
${
ABSL_CC_LIB_NAME
}
"
)
string
(
TOUPPER
${
_NAME
}
_UPPER_NAME
)
# Check if this is a header-only library
# Check if this is a header-only library
if
(
ABSL_CC_LIB_SRCS
)
if
(
ABSL_CC_LIB_SRCS
)
...
@@ -157,7 +156,7 @@ function(absl_cc_library)
...
@@ -157,7 +156,7 @@ function(absl_cc_library)
target_compile_definitions
(
${
_NAME
}
INTERFACE
${
ABSL_CC_LIB_DEFINES
}
)
target_compile_definitions
(
${
_NAME
}
INTERFACE
${
ABSL_CC_LIB_DEFINES
}
)
endif
()
endif
()
if
(
ABSL_CC_LIB_
VISIBILITY_
PUBLIC
)
if
(
ABSL_CC_LIB_PUBLIC
)
add_library
(
absl::
${
ABSL_CC_LIB_NAME
}
ALIAS
${
_NAME
}
)
add_library
(
absl::
${
ABSL_CC_LIB_NAME
}
ALIAS
${
_NAME
}
)
endif
()
endif
()
endif
()
endif
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment