Skip to content

Commit 0c7c676

Browse files
derekmaurocopybara-github
authored andcommitted
CMake: Change the default for ABSL_PROPAGATE_CXX_STD to ON
PiperOrigin-RevId: 694144866 Change-Id: I631221fa0fc64821cf328f9a6d65839a39839276
1 parent a302705 commit 0c7c676

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,7 @@ set(CMAKE_BUILD_RPATH_USE_ORIGIN ON)
4747

4848
option(ABSL_PROPAGATE_CXX_STD
4949
"Use CMake C++ standard meta features (e.g. cxx_std_14) that propagate to targets that link to Abseil"
50-
OFF) # TODO: Default to ON for CMake 3.8 and greater.
51-
if(NOT ABSL_PROPAGATE_CXX_STD)
52-
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.")
53-
endif()
50+
ON)
5451

5552
option(ABSL_USE_SYSTEM_INCLUDES
5653
"Silence warnings in Abseil headers by marking them as SYSTEM includes"

0 commit comments

Comments
 (0)