summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-05-27 23:33:10 +0000
committerEric Fiselier <eric@efcs.ca>2016-05-27 23:33:10 +0000
commit139dc2d728bd6b31cd7105e28d364442b9db25ff (patch)
treee237527f5ea4d81be8fc3c44b7b627a9f393eeaf
parentd38392ecd619f983baef5082e9e941904703d556 (diff)
downloadbcm5719-llvm-139dc2d728bd6b31cd7105e28d364442b9db25ff.tar.gz
bcm5719-llvm-139dc2d728bd6b31cd7105e28d364442b9db25ff.zip
Fix PR27751. Add proper dependancies for install-libcxx-headers rule
llvm-svn: 271073
-rw-r--r--libcxx/include/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxx/include/CMakeLists.txt b/libcxx/include/CMakeLists.txt
index d3dcc521294..219d1b73083 100644
--- a/libcxx/include/CMakeLists.txt
+++ b/libcxx/include/CMakeLists.txt
@@ -41,6 +41,7 @@ if (LIBCXX_INSTALL_HEADERS)
# Add a target that executes the generation commands.
add_custom_target(generate_config_header ALL
DEPENDS ${LIBCXX_BINARY_DIR}/__generated_config)
+ set(generated_config_deps generate_config_header)
# Install the generated header as __config.
install(FILES ${LIBCXX_BINARY_DIR}/__generated_config
DESTINATION include/c++/v1
@@ -53,7 +54,7 @@ if (LIBCXX_INSTALL_HEADERS)
# this target is just needed as a placeholder for the distribution target
add_custom_target(libcxx-headers)
add_custom_target(install-libcxx-headers
- DEPENDS libcxx-headers
+ DEPENDS libcxx-headers ${generated_config_deps}
COMMAND "${CMAKE_COMMAND}"
-DCMAKE_INSTALL_COMPONENT=libcxx-headers
-P "${CMAKE_BINARY_DIR}/cmake_install.cmake")
OpenPOWER on IntegriCloud