[libcxx] r271073 - Fix PR27751. Add proper dependancies for install-libcxx-headers rule

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Fri May 27 16:33:11 PDT 2016


Author: ericwf
Date: Fri May 27 18:33:10 2016
New Revision: 271073

URL: http://llvm.org/viewvc/llvm-project?rev=271073&view=rev
Log:
Fix PR27751. Add proper dependancies for install-libcxx-headers rule

Modified:
    libcxx/trunk/include/CMakeLists.txt

Modified: libcxx/trunk/include/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/CMakeLists.txt?rev=271073&r1=271072&r2=271073&view=diff
==============================================================================
--- libcxx/trunk/include/CMakeLists.txt (original)
+++ libcxx/trunk/include/CMakeLists.txt Fri May 27 18:33:10 2016
@@ -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")




More information about the cfe-commits mailing list