Skip to content
Snippets Groups Projects
Commit fe2006e9 authored by Roman Gershman's avatar Roman Gershman
Browse files

Update README.md

parent 7994c57a
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,8 @@
Note: Abseil requires CCTZ and the googletest framework. Consequently,
the targets `gtest`, `gtest_main`, `gmock` and `cctz` need
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()`
section of your executable or of your library
......
......@@ -62,8 +62,8 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_WARNING_VLA} ${CMAKE_CXX_FLAGS} ")
## pthread
find_package(Threads REQUIRED)
if(NOT CCTZ_TARGET)
set(CCTZ_TARGET cctz)
if(NOT ABSL_CCTZ_TARGET)
set(ABSL_CCTZ_TARGET cctz)
endif()
# commented: used only for standalone test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment