diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9df8f5ca..f68830cc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -344,6 +344,11 @@ if(WITH_OTLP)
   endif()
   include(CMakeDependentOption)
 
+  if (ABSL_USE_CXX17)
+    message(STATUS "Found absl uses CXX17, enable CXX17 feature.")
+    set(CMAKE_CXX_STANDARD 17)
+    set(WITH_STL ON)
+  endif()
   cmake_dependent_option(
     WITH_OTLP_GRPC "Whether to include the OTLP gRPC exporter in the SDK" ON
     "gRPC_FOUND" OFF)
