lib/Header: Fix Visual Studio builds try #2
commitdbe1c4aa6ff8b8fd4e2bc7d915d16e93b976c8b9
authorTom Stellard <tstellar@redhat.com>
Wed, 1 May 2019 06:18:03 +0000 (1 06:18 +0000)
committerTom Stellard <tstellar@redhat.com>
Wed, 1 May 2019 06:18:03 +0000 (1 06:18 +0000)
tree3af58bb3b72c82eacb40650d3cbe4f3d36181954
parent4672e52e22a02a336b1f5500d1e76c10ecfa4cee
lib/Header: Fix Visual Studio builds try #2

Summary:
This is a follow up to r355253 and a better fix than the first attempt
which was r359257.

We can't install anything from ${CMAKE_CFG_INTDIR}, because this value
is only defined at build time, but we still must make sure to copy the
headers into ${CMAKE_CFG_INTDIR}/lib/clang/$VERSION/include, because the lit
tests look for headers there.  So for this fix we revert to the
old behavior of copying the headers to ${CMAKE_CFG_INTDIR}/lib/clang/$VERSION/include
during the build and then installing them from the source tree.

Reviewers: smeenai, vzakhari, phosek

Reviewed By: smeenai, vzakhari

Subscribers: mgorny, cfe-commits

Tags: #clang

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

llvm-svn: 359654
clang/lib/Headers/CMakeLists.txt