Skip to content

Commit

Permalink
CMake: Change the default for ABSL_PROPAGATE_CXX_STD to ON
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 694144866
Change-Id: I631221fa0fc64821cf328f9a6d65839a39839276
  • Loading branch information
derekmauro authored and copybara-github committed Nov 7, 2024
1 parent a302705 commit 0c7c676
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ set(CMAKE_BUILD_RPATH_USE_ORIGIN ON)

option(ABSL_PROPAGATE_CXX_STD
"Use CMake C++ standard meta features (e.g. cxx_std_14) that propagate to targets that link to Abseil"
OFF) # TODO: Default to ON for CMake 3.8 and greater.
if(NOT ABSL_PROPAGATE_CXX_STD)
message(WARNING "A future Abseil release will default ABSL_PROPAGATE_CXX_STD to ON for CMake 3.8 and up. We recommend enabling this option to ensure your project still builds correctly.")
endif()
ON)

option(ABSL_USE_SYSTEM_INCLUDES
"Silence warnings in Abseil headers by marking them as SYSTEM includes"
Expand Down

0 comments on commit 0c7c676

Please sign in to comment.