mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
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
This commit is contained in:
parent
819c25e49e
commit
d29ac7efe7
@ -193,7 +193,7 @@ endfunction(add_link_opts)
|
|||||||
# Note: Don't set variables CMAKE_*_OUTPUT_DIRECTORY any more,
|
# Note: Don't set variables CMAKE_*_OUTPUT_DIRECTORY any more,
|
||||||
# or a certain builder, for eaxample, msbuild.exe, would be confused.
|
# or a certain builder, for eaxample, msbuild.exe, would be confused.
|
||||||
function(set_output_directory target)
|
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.
|
# module_dir -- corresponding to LIBRARY_OUTPUT_DIRECTORY.
|
||||||
# It affects output of add_library(MODULE).
|
# It affects output of add_library(MODULE).
|
||||||
@ -1159,4 +1159,3 @@ function(add_llvm_tool_symlink name dest)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user