[CMake] Replace LLVM_ENABLE_CXX1Y and friends with LLVM_CXX_STD
authorJustin Bogner <mail@justinbogner.com>
Mon, 8 Apr 2019 10:19:17 +0000 (10:19 +0000)
committerJustin Bogner <mail@justinbogner.com>
Mon, 8 Apr 2019 10:19:17 +0000 (10:19 +0000)
commit25de7691a0e27c29c8d783a22373cc265571f5e9
treefe75f013f7b47236fb397f175d448c623878b306
parenta82235843b102202766115e10003c9465a8b83ae
[CMake] Replace LLVM_ENABLE_CXX1Y and friends with LLVM_CXX_STD

Simplify building with particular C++ standards by replacing the
specific "enable standard X" flags with a flag that allows specifying
the standard you want directly.

We preserve compatibility with the existing flags so that anyone with
those flags in existing caches won't break mysteriously.

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

llvm-svn: 357899
llvm/CMakeLists.txt
llvm/cmake/modules/HandleLLVMOptions.cmake
llvm/docs/CMake.rst