Skip to content

Commit

Permalink
Convert output of llvm-config --targets-built to a list. This fixes #148
Browse files Browse the repository at this point in the history
.
  • Loading branch information
redstar committed Aug 1, 2012
1 parent 8d06145 commit 9dad0a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/Modules/FindLLVM.cmake
Expand Up @@ -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()
Expand Down

0 comments on commit 9dad0a6

Please sign in to comment.