[llvm-branch-commits] [llvm-branch] r214080 - Merging r214078:
Dan Liew
dan at su-root.co.uk
Mon Jul 28 06:39:56 PDT 2014
Author: delcypher
Date: Mon Jul 28 08:39:56 2014
New Revision: 214080
URL: http://llvm.org/viewvc/llvm-project?rev=214080&view=rev
Log:
Merging r214078:
------------------------------------------------------------------------
r214078 | delcypher | 2014-07-28 14:36:50 +0100 (Mon, 28 Jul 2014) | 6 lines
Emit a warning if llvm_map_components_to_libraries() is used noting that its
use is deprecated in favour of llvm_map_components_to_libnames()
Although message(DEPRECATION "msg") would probably be a better fit this
does nothing if CMAKE_ERROR_DEPRECATED and CMAKE_WARNING_DEPRECATED are
both off, which is the default.
------------------------------------------------------------------------
Modified:
llvm/branches/release_35/cmake/modules/LLVM-Config.cmake
Modified: llvm/branches/release_35/cmake/modules/LLVM-Config.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/release_35/cmake/modules/LLVM-Config.cmake?rev=214080&r1=214079&r2=214080&view=diff
==============================================================================
--- llvm/branches/release_35/cmake/modules/LLVM-Config.cmake (original)
+++ llvm/branches/release_35/cmake/modules/LLVM-Config.cmake Mon Jul 28 08:39:56 2014
@@ -51,12 +51,14 @@ function(explicit_llvm_config executable
endfunction(explicit_llvm_config)
-# This is a variant intended for the final user:
+# This is Deprecated
function(llvm_map_components_to_libraries OUT_VAR)
+ message(AUTHOR_WARNING "Using llvm_map_components_to_libraries() is deprecated. Use llvm_map_components_to_libnames() instead")
explicit_map_components_to_libraries(result ${ARGN})
set( ${OUT_VAR} ${result} ${sys_result} PARENT_SCOPE )
endfunction(llvm_map_components_to_libraries)
+# This is a variant intended for the final user:
# Map LINK_COMPONENTS to actual libnames.
function(llvm_map_components_to_libnames out_libs)
set( link_components ${ARGN} )
More information about the llvm-branch-commits
mailing list