diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-15 07:52:36 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-15 07:52:36 +0000 |
commit | 1258e70812d95c19df870adad8a21e1be8de9b3f (patch) | |
tree | 80312ead800a8d9f3208ee25e5a2e249f1129fe6 /cmake/modules | |
parent | f28dc34468c70398c7ef98a63c234fd9dc60468c (diff) | |
download | external_llvm-1258e70812d95c19df870adad8a21e1be8de9b3f.zip external_llvm-1258e70812d95c19df870adad8a21e1be8de9b3f.tar.gz external_llvm-1258e70812d95c19df870adad8a21e1be8de9b3f.tar.bz2 |
Tweak CMake component lookup, I misunderstood what was happening here.though. :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75757 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules')
-rwxr-xr-x | cmake/modules/LLVMConfig.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/modules/LLVMConfig.cmake b/cmake/modules/LLVMConfig.cmake index 9bcb02d..89e6edb 100755 --- a/cmake/modules/LLVMConfig.cmake +++ b/cmake/modules/LLVMConfig.cmake @@ -65,7 +65,6 @@ function(explicit_map_components_to_libraries out_libs) foreach(c ${link_components}) # add codegen/asmprinter list(FIND LLVM_TARGETS_TO_BUILD ${c} idx) - list(APPEND expanded_components "LLVM${c}Info") if( NOT idx LESS 0 ) list(FIND llvm_libs "LLVM${c}CodeGen" idx) if( NOT idx LESS 0 ) @@ -82,6 +81,10 @@ function(explicit_map_components_to_libraries out_libs) if( NOT asmidx LESS 0 ) list(APPEND expanded_components "LLVM${c}AsmPrinter") endif() + list(FIND llvm_libs "LLVM${c}Info" asmidx) + if( NOT asmidx LESS 0 ) + list(APPEND expanded_components "LLVM${c}Info") + endif() elseif( c STREQUAL "native" ) # TODO: we assume ARCH is X86. In this case, we must use nativecodegen # component instead. Do nothing, as in llvm-config script. |