diff --git a/CMakeLists.txt b/CMakeLists.txt index cc6e583251a..2b51c97a4f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -890,9 +890,13 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY) PATTERN ".svn" EXCLUDE ) + # Installing the headers needs to depend on generating any public + # tablegen'd headers. + add_custom_target(llvm-headers DEPENDS intrinsics_gen) + if (NOT CMAKE_CONFIGURATION_TYPES) - add_custom_target(installhdrs - DEPENDS ${name} + add_custom_target(install-llvm-headers + DEPENDS llvm-headers COMMAND "${CMAKE_COMMAND}" -DCMAKE_INSTALL_COMPONENT=llvm-headers -P "${CMAKE_BINARY_DIR}/cmake_install.cmake")