[llvm-commits] [llvm] r127679 - /llvm/trunk/cmake/modules/LLVMConfig.cmake
Oscar Fuentes
ofv at wanadoo.es
Tue Mar 15 07:53:53 PDT 2011
Author: ofv
Date: Tue Mar 15 09:53:53 2011
New Revision: 127679
URL: http://llvm.org/viewvc/llvm-project?rev=127679&view=rev
Log:
is_llvm_target_library: recognize libraries without the LLVM prefix.
Without this cmake fails at configuration when some target pass
"native" on LLVM_LINK_COMPONENTS and that is expanded to "X86".
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=127679&r1=127678&r2=127679&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/LLVMConfig.cmake (original)
+++ llvm/trunk/cmake/modules/LLVMConfig.cmake Tue Mar 15 09:53:53 2011
@@ -23,7 +23,8 @@
string(TOUPPER "${library}" capitalized_lib)
string(TOUPPER "${LLVM_ALL_TARGETS}" targets)
foreach(t ${targets})
- if( capitalized_lib STREQUAL "LLVM${t}" OR
+ if( capitalized_lib STREQUAL t OR
+ capitalized_lib STREQUAL "LLVM${t}" OR
capitalized_lib STREQUAL "LLVM${t}CODEGEN" OR
capitalized_lib STREQUAL "LLVM${t}ASMPARSER" OR
capitalized_lib STREQUAL "LLVM${t}ASMPRINTER" OR
More information about the llvm-commits
mailing list