[CMake] Get rid of llvm_config() to expand dependencies.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 4 Feb 2014 14:42:14 +0000 (14:42 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 4 Feb 2014 14:42:14 +0000 (14:42 +0000)
CMake's target_link_libraries() will manage dependencies.

Configuration time may be reduced by a few seconds.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200765 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/LLVM-Config.cmake

index ef13ef3364ae704ef9159eaccd91b3053c494e53..31395649323826941113b36d8959fee6bc066528 100644 (file)
@@ -62,7 +62,7 @@ endmacro(llvm_config)
 function(explicit_llvm_config executable)
   set( link_components ${ARGN} )
 
-  explicit_map_components_to_libraries(LIBRARIES ${link_components})
+  llvm_map_components_to_libnames(LIBRARIES ${link_components})
   target_link_libraries(${executable} ${LIBRARIES})
 endfunction(explicit_llvm_config)