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

NAKAMURA Takumi geek4civic at gmail.com
Sun Feb 9 19:24:19 PST 2014


Author: chapuni
Date: Sun Feb  9 21:24:19 2014
New Revision: 201062

URL: http://llvm.org/viewvc/llvm-project?rev=201062&view=rev
Log:
[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.

Modified:
    llvm/trunk/cmake/modules/LLVM-Config.cmake

Modified: llvm/trunk/cmake/modules/LLVM-Config.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/LLVM-Config.cmake?rev=201062&r1=201061&r2=201062&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/LLVM-Config.cmake (original)
+++ llvm/trunk/cmake/modules/LLVM-Config.cmake Sun Feb  9 21:24:19 2014
@@ -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)
 





More information about the llvm-commits mailing list