[CMake] Re-apply r200765, "Get rid of llvm_config() to expand dependencies."

CMake's target_link_libraries() will manage dependencies with Brad's LLVMConfig improvements.

Configuration time may be reduced by a few seconds.

llvm-svn: 201062
This commit is contained in:
NAKAMURA Takumi 2014-02-10 03:24:19 +00:00
parent 6e73761dc8
commit 623055b0ec
1 changed files with 1 additions and 7 deletions

View File

@ -62,13 +62,7 @@ endmacro(llvm_config)
function(explicit_llvm_config executable) function(explicit_llvm_config executable)
set( link_components ${ARGN} ) set( link_components ${ARGN} )
# Check for out-of-tree builds. llvm_map_components_to_libnames(LIBRARIES ${link_components})
if(PROJECT_NAME STREQUAL "LLVM")
llvm_map_components_to_libnames(LIBRARIES ${link_components})
else()
explicit_map_components_to_libraries(LIBRARIES ${link_components})
endif()
target_link_libraries(${executable} ${LIBRARIES}) target_link_libraries(${executable} ${LIBRARIES})
endfunction(explicit_llvm_config) endfunction(explicit_llvm_config)