llvm.org GIT mirror llvm / b1e7bec
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201062 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 5 years ago
1 changed file(s) with 1 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
6161 function(explicit_llvm_config executable)
6262 set( link_components ${ARGN} )
6363
64 # Check for out-of-tree builds.
65 if(PROJECT_NAME STREQUAL "LLVM")
66 llvm_map_components_to_libnames(LIBRARIES ${link_components})
67 else()
68 explicit_map_components_to_libraries(LIBRARIES ${link_components})
69 endif()
70
64 llvm_map_components_to_libnames(LIBRARIES ${link_components})
7165 target_link_libraries(${executable} ${LIBRARIES})
7266 endfunction(explicit_llvm_config)
7367