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
fe2006e9
Commit
fe2006e9
authored
Jan 29, 2018
by
Roman Gershman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
7994c57a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
CMake/README.md
+2
-1
CMakeLists.txt
+2
-2
No files found.
CMake/README.md
View file @
fe2006e9
...
@@ -29,7 +29,8 @@
...
@@ -29,7 +29,8 @@
Note: Abseil requires CCTZ and the googletest framework. Consequently,
Note: Abseil requires CCTZ and the googletest framework. Consequently,
the targets `gtest`, `gtest_main`, `gmock` and `cctz` need
the targets `gtest`, `gtest_main`, `gmock` and `cctz` need
to be declared in your project before including abseil with `add_subdirectory`.
to be declared in your project before including abseil with `add_subdirectory`.
However, if abseil is compiled with -DBUILD_TESTING=OFF, then `gtest`, `gmock` and `gtest_main` are not required.
In addition, it's possible to override the name of cctz target to custom one with option -DABSL_CCTZ_TARGET=my_cctz
4- Add the absl:: target you wish to use to the
`target_link_libraries()`
4- Add the absl:: target you wish to use to the
`target_link_libraries()`
section of your executable or of your library
section of your executable or of your library
...
...
CMakeLists.txt
View file @
fe2006e9
...
@@ -62,8 +62,8 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_WARNING_VLA} ${CMAKE_CXX_FLAGS} ")
...
@@ -62,8 +62,8 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_WARNING_VLA} ${CMAKE_CXX_FLAGS} ")
## pthread
## pthread
find_package
(
Threads REQUIRED
)
find_package
(
Threads REQUIRED
)
if
(
NOT CCTZ_TARGET
)
if
(
NOT
ABSL_
CCTZ_TARGET
)
set
(
CCTZ_TARGET cctz
)
set
(
ABSL_
CCTZ_TARGET cctz
)
endif
()
endif
()
# commented: used only for standalone test
# commented: used only for standalone test
...
...
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