]> granicus.if.org Git - clang/commitdiff
lib/Header: Fix Visual Studio builds
authorTom Stellard <tstellar@redhat.com>
Fri, 26 Apr 2019 01:18:59 +0000 (01:18 +0000)
committerTom Stellard <tstellar@redhat.com>
Fri, 26 Apr 2019 01:18:59 +0000 (01:18 +0000)
Summary:
This is a follow up to r355253, which inadvertently broke Visual
Studio builds by trying to copy files from CMAKE_CFG_INTDIR.

See https://reviews.llvm.org/D58537#inline-532492

Reviewers: smeenai, vzakhari, phosek

Reviewed By: smeenai

Subscribers: mgorny, cfe-commits

Tags: #clang

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@359257 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/CMakeLists.txt

index 04c5edb0e8c2daf4034ffa95240ffcefcb5090c8..7811d2cc31bd02b6d48d3dde3c64e41e2a6be715 100644 (file)
@@ -126,7 +126,7 @@ set(ppc_wrapper_files
   ppc_wrappers/mmintrin.h
 )
 
-set(output_dir ${LLVM_LIBRARY_OUTPUT_INTDIR}/clang/${CLANG_VERSION}/include)
+set(output_dir ${CMAKE_CURRENT_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/clang/${CLANG_VERSION}/include)
 set(out_files)
 
 function(copy_header_to_output_dir src_dir file)