[llvm] r288600 - build: allow specifying the component to `llvm_install_symlink`
Saleem Abdulrasool via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 3 14:03:24 PST 2016
Author: compnerd
Date: Sat Dec 3 16:03:24 2016
New Revision: 288600
URL: http://llvm.org/viewvc/llvm-project?rev=288600&view=rev
Log:
build: allow specifying the component to `llvm_install_symlink`
Add an optional parameter to `llvm_install_symlink` which allows the symlink
installation to be placed into a specific component rather than the default
value.
Modified:
llvm/trunk/cmake/modules/AddLLVM.cmake
Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=288600&r1=288599&r2=288600&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Sat Dec 3 16:03:24 2016
@@ -1254,7 +1254,7 @@ function(llvm_install_library_symlink na
endfunction()
function(llvm_install_symlink name dest)
- cmake_parse_arguments(ARG "ALWAYS_GENERATE" "" "" ${ARGN})
+ cmake_parse_arguments(ARG "ALWAYS_GENERATE" "COMPONENT" "" ${ARGN})
foreach(path ${CMAKE_MODULE_PATH})
if(EXISTS ${path}/LLVMInstallSymlink.cmake)
set(INSTALL_SYMLINK ${path}/LLVMInstallSymlink.cmake)
@@ -1262,10 +1262,14 @@ function(llvm_install_symlink name dest)
endif()
endforeach()
- if(ARG_ALWAYS_GENERATE)
- set(component ${dest})
+ if(ARG_COMPONENT)
+ set(component ${ARG_COMPONENT})
else()
- set(component ${name})
+ if(ARG_ALWAYS_GENERATE)
+ set(component ${dest})
+ else()
+ set(component ${name})
+ endif()
endif()
set(full_name ${name}${CMAKE_EXECUTABLE_SUFFIX})
More information about the llvm-commits
mailing list