[CMake] Use -std=c++11 if supported
authorChris Bieneman <beanz@apple.com>
Mon, 29 Aug 2016 22:12:21 +0000 (22:12 +0000)
committerChris Bieneman <beanz@apple.com>
Mon, 29 Aug 2016 22:12:21 +0000 (22:12 +0000)
commit8223a1d09f6bce6a31ae88efce44a72e394018f4
treea2ec8c919a3d89baf679f98b38b7a2375c54be9c
parent6e1eaac62b2e911b28fae1432f2f6fd495907baf
[CMake] Use -std=c++11 if supported

Summary: This patch adds a check for if -std=c++11 is a supported flag, and adds it to CMAKE_CXX_FLAGS if it is supported.

Reviewers: EricWF

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D24007

llvm-svn: 280021
libcxxabi/cmake/config-ix.cmake