summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Liew <dan@su-root.co.uk>2014-07-28 13:36:50 +0000
committerDan Liew <dan@su-root.co.uk>2014-07-28 13:36:50 +0000
commit544f45b39f75e06df35f5c3144ba746e49c386c3 (patch)
treec129f17ef23bd567e35640a06c1420bf1233d72b
parent9745661dcbab3e96f38b5ed479cab2c2a941bd75 (diff)
downloadbcm5719-llvm-544f45b39f75e06df35f5c3144ba746e49c386c3.tar.gz
bcm5719-llvm-544f45b39f75e06df35f5c3144ba746e49c386c3.zip
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. llvm-svn: 214078
-rw-r--r--llvm/cmake/modules/LLVM-Config.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/cmake/modules/LLVM-Config.cmake b/llvm/cmake/modules/LLVM-Config.cmake
index faba6dfd597..8ae1d23e4ee 100644
--- a/llvm/cmake/modules/LLVM-Config.cmake
+++ b/llvm/cmake/modules/LLVM-Config.cmake
@@ -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} )
OpenPOWER on IntegriCloud