Skip to content

Commit

Permalink
deps(abseil-cpp): remove dependence on abseil-cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
XuehaiPan committed Sep 26, 2023
1 parent 8d1593a commit 8538881
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
1 change: 0 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# NOTE: there must be no spaces before the '-', so put the comma last.
InheritParentConfig: true
Checks: '
abseil-*,
bugprone-*,
-bugprone-easily-swappable-parameters,
clang-analyzer-*,
Expand Down
25 changes: 0 additions & 25 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,9 @@ set(THIRD_PARTY_DIR "${CMAKE_SOURCE_DIR}/third-party")
if(NOT DEFINED PYBIND11_VERSION AND NOT "$ENV{PYBIND11_VERSION}" STREQUAL "")
set(PYBIND11_VERSION "$ENV{PYBIND11_VERSION}")
endif()
if(NOT DEFINED ABSEIL_CPP_VERSION AND NOT "$ENV{ABSEIL_CPP_VERSION}" STREQUAL "")
set(ABSEIL_CPP_VERSION "$ENV{ABSEIL_CPP_VERSION}")
endif()
if(NOT PYBIND11_VERSION)
set(PYBIND11_VERSION v2.11.1)
endif()
if(NOT ABSEIL_CPP_VERSION)
set(ABSEIL_CPP_VERSION 20230802.1)
endif()

if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
Expand Down Expand Up @@ -189,24 +183,5 @@ else()
find_package(pybind11 CONFIG PATHS "${PYBIND11_CMAKE_DIR}")
endif()

# Include abseil-cpp
set(ABSL_PROPAGATE_CXX_STD ON)
set(ABSL_BUILD_TESTING OFF)
FetchContent_Declare(
abseilcpp
GIT_REPOSITORY /~https://github.com/abseil/abseil-cpp.git
GIT_TAG "${ABSEIL_CPP_VERSION}"
GIT_SHALLOW TRUE
SOURCE_DIR "${THIRD_PARTY_DIR}/abseil-cpp"
BINARY_DIR "${THIRD_PARTY_DIR}/.cmake/abseil-cpp/build"
STAMP_DIR "${THIRD_PARTY_DIR}/.cmake/abseil-cpp/stamp"
)
FetchContent_GetProperties(abseilcpp)

if(NOT abseilcpp_POPULATED)
message(STATUS "Populating Git repository abseil-cpp@${ABSEIL_CPP_VERSION} to third-party/abseil-cpp...")
FetchContent_MakeAvailable(abseilcpp)
endif()

include_directories("${CMAKE_SOURCE_DIR}")
add_subdirectory(src)

0 comments on commit 8538881

Please sign in to comment.