[libc++] Localize common build flags into a single CMake function
authorLouis Dionne <ldionne@apple.com>
Fri, 4 Oct 2019 22:50:23 +0000 (22:50 +0000)
committerLouis Dionne <ldionne@apple.com>
Fri, 4 Oct 2019 22:50:23 +0000 (22:50 +0000)
commitfadc84ae9a959d9d5b0642fce4dff7a1f32d63ad
treec0dc971741d2b6ef8bbeb68b2f64e47d6ffbd4f3
parent6a2673605e50d42d2326e51e29a0d78361c7a570
[libc++] Localize common build flags into a single CMake function

Also, set those flags for the cxx_experimental target. Otherwise,
cxx_experimental doesn't build properly when neither the static nor
the shared library is compiled (yes, that is a weird setup).

llvm-svn: 373808
libcxx/CMakeLists.txt
libcxx/src/CMakeLists.txt