diff options
| author | Oscar Fuentes <ofv@wanadoo.es> | 2010-08-09 03:47:11 +0000 |
|---|---|---|
| committer | Oscar Fuentes <ofv@wanadoo.es> | 2010-08-09 03:47:11 +0000 |
| commit | 19559e1e0ebf973638c58e78579a0766fd77c16e (patch) | |
| tree | 2a8fd4f51d27637a9117e823c3a28150c9ab7ee7 /cmake | |
| parent | 40804e5a4663f80c50396732f0ce2a66b228e68d (diff) | |
| download | external_llvm-19559e1e0ebf973638c58e78579a0766fd77c16e.zip external_llvm-19559e1e0ebf973638c58e78579a0766fd77c16e.tar.gz external_llvm-19559e1e0ebf973638c58e78579a0766fd77c16e.tar.bz2 | |
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')
| -rw-r--r-- | cmake/modules/LLVM.cmake | 2 | ||||
| -rwxr-xr-x | cmake/modules/LLVMConfig.cmake | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/cmake/modules/LLVM.cmake b/cmake/modules/LLVM.cmake index 1f63271..b055d83 100644 --- a/cmake/modules/LLVM.cmake +++ b/cmake/modules/LLVM.cmake @@ -8,7 +8,7 @@ set(LLVM_TARGETS_TO_BUILD @LLVM_TARGETS_TO_BUILD@) set(LLVM_TOOLS_BINARY_DIR @LLVM_TOOLS_BINARY_DIR@) -set(HAVE_LLVM_CONFIG @HAVE_LLVM_CONFIG@) +set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@) if( NOT EXISTS LLVMConfig.cmake ) set(CMAKE_MODULE_PATH diff --git a/cmake/modules/LLVMConfig.cmake b/cmake/modules/LLVMConfig.cmake index 5c94b12..c623bfa 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) |
