Permalink
Browse files

Convert output of llvm-config --targets-built to a list. This fixes #148

.
  • Loading branch information...
1 parent 8d06145 commit 9dad0a6b3b55b7f29b5e648295f53b8044df9510 @redstar redstar committed Aug 1, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 cmake/Modules/FindLLVM.cmake
@@ -81,6 +81,7 @@ else()
if(${LLVM_VERSION_STRING} MATCHES "3.0[A-Za-z]*")
# Version 3.0 does not support component all-targets
llvm_set(TARGETS_TO_BUILD targets-built)
+ string(REGEX MATCHALL "[^ ]+" LLVM_TARGETS_TO_BUILD ${LLVM_TARGETS_TO_BUILD})
list(REMOVE_ITEM LLVM_FIND_COMPONENTS "all-targets" index)
list(APPEND LLVM_FIND_COMPONENTS ${LLVM_TARGETS_TO_BUILD})
else()

0 comments on commit 9dad0a6

Please sign in to comment.