summaryrefslogtreecommitdiff
path: root/cmake/modules/LLVMConfig.cmake
diff options
context:
space:
mode:
authorOscar Fuentes <ofv@wanadoo.es>2010-08-09 03:47:11 +0000
committerOscar Fuentes <ofv@wanadoo.es>2010-08-09 03:47:11 +0000
commit8150d8d530a2e30912592294a0af916337334ab0 (patch)
tree2a8fd4f51d27637a9117e823c3a28150c9ab7ee7 /cmake/modules/LLVMConfig.cmake
parentba575092218a93f38273c8c72560cef3300177af (diff)
downloadllvm-8150d8d530a2e30912592294a0af916337334ab0.tar.gz
llvm-8150d8d530a2e30912592294a0af916337334ab0.tar.bz2
llvm-8150d8d530a2e30912592294a0af916337334ab0.tar.xz
CMake: llvm_map_components_to_libraries now returns system libs too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110563 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules/LLVMConfig.cmake')
-rwxr-xr-xcmake/modules/LLVMConfig.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/modules/LLVMConfig.cmake b/cmake/modules/LLVMConfig.cmake
index 5c94b126b0..c623bfaba8 100755
--- a/cmake/modules/LLVMConfig.cmake
+++ b/cmake/modules/LLVMConfig.cmake
@@ -52,7 +52,8 @@ 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} )
+ get_system_libs(sys_result)
+ set( ${OUT_VAR} ${result} ${sys_result} )
endfunction(llvm_map_components_to_libraries)