[PATCH] D14339: AddLLVM: squelch CMP0007 by not adding empty elements to list

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 10 10:29:09 PST 2015


This revision was automatically updated to reflect the committed changes.
Closed by commit rL252628: AddLLVM: squelch CMP0007 by not adding empty elements to list (authored by artagnon).

Changed prior to commit:
  http://reviews.llvm.org/D14339?vs=39218&id=39827#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D14339

Files:
  llvm/trunk/cmake/modules/AddLLVM.cmake

Index: llvm/trunk/cmake/modules/AddLLVM.cmake
===================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake
+++ llvm/trunk/cmake/modules/AddLLVM.cmake
@@ -193,7 +193,7 @@
 # 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 @@
       break()
     endif()
   endforeach()
-  
+
   if(ARG_ALWAYS_GENERATE)
     set(component ${dest})
   else()
@@ -1159,4 +1159,3 @@
     endif()
   endif()
 endfunction()
-


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14339.39827.patch
Type: text/x-patch
Size: 844 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151110/f3bcf1e3/attachment.bin>


More information about the llvm-commits mailing list