summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2014-02-10 03:24:19 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2014-02-10 03:24:19 +0000
commitb1e7bec958497170f4767024eb7f5ab04b665c4a (patch)
tree2e0c3c0760bfa9a9dc186a523f48abfce2274f44 /cmake
parent2825b8f0ea989e0d50f4287970f1461a1050ffb5 (diff)
downloadllvm-b1e7bec958497170f4767024eb7f5ab04b665c4a.tar.gz
[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
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/LLVM-Config.cmake8
1 files changed, 1 insertions, 7 deletions
diff --git a/cmake/modules/LLVM-Config.cmake b/cmake/modules/LLVM-Config.cmake
index 3b0c948e6a64..313956493238 100644
--- a/cmake/modules/LLVM-Config.cmake
+++ b/cmake/modules/LLVM-Config.cmake
@@ -62,13 +62,7 @@ endmacro(llvm_config)
function(explicit_llvm_config executable)
set( link_components ${ARGN} )
- # Check for out-of-tree builds.
- if(PROJECT_NAME STREQUAL "LLVM")
- llvm_map_components_to_libnames(LIBRARIES ${link_components})
- else()
- explicit_map_components_to_libraries(LIBRARIES ${link_components})
- endif()
-
+ llvm_map_components_to_libnames(LIBRARIES ${link_components})
target_link_libraries(${executable} ${LIBRARIES})
endfunction(explicit_llvm_config)