summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorOscar Fuentes <ofv@wanadoo.es>2011-03-15 14:53:53 +0000
committerOscar Fuentes <ofv@wanadoo.es>2011-03-15 14:53:53 +0000
commit6704415206343549a58396e57eeeda60238d8eb6 (patch)
tree29f8e57705e7a6379f3011bae64d7e816a927243 /cmake
parent5aad8b3e7884b60811ee4c338597d56f732336fb (diff)
downloadllvm-6704415206343549a58396e57eeeda60238d8eb6.tar.gz
llvm-6704415206343549a58396e57eeeda60238d8eb6.tar.bz2
llvm-6704415206343549a58396e57eeeda60238d8eb6.tar.xz
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". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127679 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to '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 615a118a3c..ec7831da3b 100755
--- a/cmake/modules/LLVMConfig.cmake
+++ b/cmake/modules/LLVMConfig.cmake
@@ -23,7 +23,8 @@ function(is_llvm_target_library library return_var)
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