[PATCH] D71951: [CMake] Pass symlink dependency to add_llvm_install_targets explicitly
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 6 14:54:26 PST 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG71a2a62163cf: [CMake] Pass symlink dependency to add_llvm_install_targets explicitly (authored by phosek).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71951/new/
https://reviews.llvm.org/D71951
Files:
llvm/cmake/modules/AddLLVM.cmake
Index: llvm/cmake/modules/AddLLVM.cmake
===================================================================
--- llvm/cmake/modules/AddLLVM.cmake
+++ llvm/cmake/modules/AddLLVM.cmake
@@ -642,7 +642,7 @@
endfunction()
function(add_llvm_install_targets target)
- cmake_parse_arguments(ARG "" "COMPONENT;PREFIX" "DEPENDS" ${ARGN})
+ cmake_parse_arguments(ARG "" "COMPONENT;PREFIX;SYMLINK" "DEPENDS" ${ARGN})
if(ARG_COMPONENT)
set(component_option -DCMAKE_INSTALL_COMPONENT="${ARG_COMPONENT}")
endif()
@@ -679,6 +679,11 @@
add_dependencies(${target} ${target_dependencies})
add_dependencies(${target}-stripped ${target_dependencies})
endif()
+
+ if(ARG_SYMLINK)
+ add_dependencies(${target} install-${ARG_SYMLINK})
+ add_dependencies(${target}-stripped install-${ARG_SYMLINK}-stripped)
+ endif()
endfunction()
function(add_llvm_component_library name)
@@ -1627,8 +1632,9 @@
if (NOT LLVM_ENABLE_IDE AND NOT ARG_ALWAYS_GENERATE)
add_llvm_install_targets(install-${name}
- DEPENDS ${name} ${dest} install-${dest}
- COMPONENT ${name})
+ DEPENDS ${name} ${dest}
+ COMPONENT ${name}
+ SYMLINK ${dest})
endif()
endfunction()
@@ -1660,8 +1666,9 @@
if (NOT LLVM_ENABLE_IDE AND NOT ARG_ALWAYS_GENERATE)
add_llvm_install_targets(install-${name}
- DEPENDS ${name} ${dest} install-${dest}
- COMPONENT ${name})
+ DEPENDS ${name} ${dest}
+ COMPONENT ${name}
+ SYMLINK ${dest})
endif()
endfunction()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71951.236463.patch
Type: text/x-patch
Size: 1733 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200106/712303ba/attachment.bin>
More information about the llvm-commits
mailing list