diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2010-08-09 03:26:43 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2010-08-09 03:26:43 +0000 |
commit | 6252e987096e5b7154f18cca04d8e1cadc7373da (patch) | |
tree | f171e5c5dbf84f898951f78e95abeee8105af992 /cmake/modules/LLVMConfig.cmake | |
parent | fd2f3e66fe8ba33c6a9cfb144ad0c136120ec37a (diff) | |
download | llvm-6252e987096e5b7154f18cca04d8e1cadc7373da.tar.gz llvm-6252e987096e5b7154f18cca04d8e1cadc7373da.tar.bz2 llvm-6252e987096e5b7154f18cca04d8e1cadc7373da.tar.xz |
CMake: system for providing llvm-config-like features to the user.
The user can use a cmake function for obtaining the LLVM libraries
corresponding to a list of LLVM components.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110560 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules/LLVMConfig.cmake')
-rwxr-xr-x | cmake/modules/LLVMConfig.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/modules/LLVMConfig.cmake b/cmake/modules/LLVMConfig.cmake index 7d636eaa76..5c94b126b0 100755 --- a/cmake/modules/LLVMConfig.cmake +++ b/cmake/modules/LLVMConfig.cmake @@ -49,6 +49,13 @@ function(explicit_llvm_config executable) endfunction(explicit_llvm_config) +# This is a variant intended for the final user: +function(llvm_map_components_to_libraries OUT_VAR) + explicit_map_components_to_libraries(result ${ARGN}) + set( ${OUT_VAR} ${result} ) +endfunction(llvm_map_components_to_libraries) + + function(explicit_map_components_to_libraries out_libs) set( link_components ${ARGN} ) foreach(c ${link_components}) |