Skip to content

Commit 31637d9

Browse files
committed
cmake: Rename installhdrs to install-llvm-headers and fix the dependencies
The installhdrs target was inconsistently named and would behave differently depending on whether or not you ran a build first. This renames it to install-llvm-headers to match other target names and adds a dependency on intrinsics_gen so that it will always install the same set of things. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285035 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 10310d2 commit 31637d9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -890,9 +890,13 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
890890
PATTERN ".svn" EXCLUDE
891891
)
892892

893+
# Installing the headers needs to depend on generating any public
894+
# tablegen'd headers.
895+
add_custom_target(llvm-headers DEPENDS intrinsics_gen)
896+
893897
if (NOT CMAKE_CONFIGURATION_TYPES)
894-
add_custom_target(installhdrs
895-
DEPENDS ${name}
898+
add_custom_target(install-llvm-headers
899+
DEPENDS llvm-headers
896900
COMMAND "${CMAKE_COMMAND}"
897901
-DCMAKE_INSTALL_COMPONENT=llvm-headers
898902
-P "${CMAKE_BINARY_DIR}/cmake_install.cmake")

0 commit comments

Comments
 (0)