Merge pull request #2808 from OlivierLDff:cmake-cpp11-feature
PiperOrigin-RevId: 320222294
This commit is contained in:
commit
592d464243
@ -188,6 +188,10 @@ function(cxx_library_with_type name type cxx_flags)
|
|||||||
endif()
|
endif()
|
||||||
target_link_libraries(${name} PUBLIC ${threads_spec})
|
target_link_libraries(${name} PUBLIC ${threads_spec})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (NOT "${CMAKE_VERSION}" VERSION_LESS "3.8")
|
||||||
|
target_compile_features(${name} PUBLIC cxx_std_11)
|
||||||
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user