2022-07-15 05:12:01 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2023-03-02 10:26:22 +08:00
|
|
|
index 3fb0564..b4a251b 100644
|
2022-01-20 02:48:18 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2023-03-02 10:26:22 +08:00
|
|
|
@@ -29,6 +29,14 @@ if (NOT "${PROJECT_VERSION_PRE_RELEASE}" STREQUAL "")
|
|
|
|
set(PROJECT_VERSION "${PROJECT_VERSION}-${PROJECT_VERSION_PRE_RELEASE}")
|
2022-04-07 03:01:56 +08:00
|
|
|
endif ()
|
2022-01-20 02:48:18 +08:00
|
|
|
|
|
|
|
+find_package(absl CONFIG REQUIRED)
|
|
|
|
+
|
|
|
|
+# Use CMAKE_CXX_STANDARD=17 if ABSL_USE_CXX17 is set
|
|
|
|
+if (ABSL_USE_CXX17)
|
|
|
|
+ message(STATUS "Found absl uses CXX17, enable CXX17 feature.")
|
|
|
|
+ set(CMAKE_CXX_STANDARD 17)
|
2022-04-07 03:01:56 +08:00
|
|
|
+endif ()
|
|
|
|
+
|
|
|
|
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
2022-07-15 05:12:01 +08:00
|
|
|
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.3)
|
2022-04-07 03:01:56 +08:00
|
|
|
message(
|