--- a/CMake/AbseilHelpers.cmake +++ b/CMake/AbseilHelpers.cmake @@ -254,8 +254,12 @@ Cflags: -I\${includedir}${PC_CFLAGS}\n") endif() # INTERFACE libraries can't have the CXX_STANDARD property set + if(ABSL_PROPAGATE_CXX_STD) + target_compile_features(${_NAME} PUBLIC cxx_std_11) + else() set_property(TARGET ${_NAME} PROPERTY CXX_STANDARD ${ABSL_CXX_STANDARD}) set_property(TARGET ${_NAME} PROPERTY CXX_STANDARD_REQUIRED ON) + endif() # When being installed, we lose the absl_ prefix. We want to put it back # to have properly named lib files. This is a no-op when we are not being