[llvm-commits] [llvm] r75757 - /llvm/trunk/cmake/modules/LLVMConfig.cmake
Daniel Dunbar
daniel at zuster.org
Wed Jul 15 00:52:47 PDT 2009
Author: ddunbar
Date: Wed Jul 15 02:52:36 2009
New Revision: 75757
URL: http://llvm.org/viewvc/llvm-project?rev=75757&view=rev
Log:
Tweak CMake component lookup, I misunderstood what was happening here.though. :(
Modified:
llvm/trunk/cmake/modules/LLVMConfig.cmake
Modified: llvm/trunk/cmake/modules/LLVMConfig.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/LLVMConfig.cmake?rev=75757&r1=75756&r2=75757&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/LLVMConfig.cmake (original)
+++ llvm/trunk/cmake/modules/LLVMConfig.cmake Wed Jul 15 02:52:36 2009
@@ -65,7 +65,6 @@
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 @@
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.
More information about the llvm-commits
mailing list