[libc++] Add a per-target flag to include the generated config_site
authorLouis Dionne <ldionne@apple.com>
Thu, 3 Oct 2019 17:20:50 +0000 (17:20 +0000)
committerLouis Dionne <ldionne@apple.com>
Thu, 3 Oct 2019 17:20:50 +0000 (17:20 +0000)
commitc5b74bf6e548441064eabc54e6078c35cd6116a7
treed4f69b15ca4291b0a57ce924b10b139cd17d54f0
parente6f51713054f8199c61a9dc94faf3dbce1221c02
[libc++] Add a per-target flag to include the generated config_site

This allows propagating the include automatically to targets that
depend on one of the libc++ targets such as the benchmarks. Note
that the GoogleBenchmark build itself still needs to manually specify
the -include, since I don't know of any way to have an external project
link against one of the libc++ targets (which would propagate the -include
automatically).

llvm-svn: 373631
libcxx/CMakeLists.txt
libcxx/benchmarks/CMakeLists.txt
libcxx/src/CMakeLists.txt