summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/modules
diff options
context:
space:
mode:
authorRamkumar Ramachandra <artagnon@gmail.com>2015-11-10 18:26:34 +0000
committerRamkumar Ramachandra <artagnon@gmail.com>2015-11-10 18:26:34 +0000
commitcad135a95c38c5f676a0e21de49573db22c051a7 (patch)
tree6d3453cd846fb6666400ced8ca08d7d969edd2ab /llvm/cmake/modules
parentdfbebc37da8501c8b747a776648cadfdc6d75c9f (diff)
downloadbcm5719-llvm-cad135a95c38c5f676a0e21de49573db22c051a7.tar.gz
bcm5719-llvm-cad135a95c38c5f676a0e21de49573db22c051a7.zip
AddLLVM: squelch CMP0007 by not adding empty elements to list
When configuring various llvm projects that use AddLLVM.cmake, this warning is emitted many times, flooding the screen: Policy CMP0007 is not set: list command no longer ignores empty elements. The fix is removing an extra semicolon. Differential Revision: http://reviews.llvm.org/D14339 llvm-svn: 252628
Diffstat (limited to 'llvm/cmake/modules')
-rw-r--r--llvm/cmake/modules/AddLLVM.cmake5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
index 16514d6a1cd..780ead28991 100644
--- a/llvm/cmake/modules/AddLLVM.cmake
+++ b/llvm/cmake/modules/AddLLVM.cmake
@@ -193,7 +193,7 @@ endfunction(add_link_opts)
# Note: Don't set variables CMAKE_*_OUTPUT_DIRECTORY any more,
# or a certain builder, for eaxample, msbuild.exe, would be confused.
function(set_output_directory target)
- cmake_parse_arguments(ARG "" "BINARY_DIR;LIBRARY_DIR;" "" ${ARGN})
+ cmake_parse_arguments(ARG "" "BINARY_DIR;LIBRARY_DIR" "" ${ARGN})
# module_dir -- corresponding to LIBRARY_OUTPUT_DIRECTORY.
# It affects output of add_library(MODULE).
@@ -1095,7 +1095,7 @@ function(llvm_install_symlink name dest)
break()
endif()
endforeach()
-
+
if(ARG_ALWAYS_GENERATE)
set(component ${dest})
else()
@@ -1159,4 +1159,3 @@ function(add_llvm_tool_symlink name dest)
endif()
endif()
endfunction()
-
OpenPOWER on IntegriCloud