[PATCH] D13432: cmake: Avoid leading space in LLVM_DEFINITIONS.

Paweł Bylica via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 12 03:44:03 PDT 2015


This revision was automatically updated to reflect the committed changes.
Closed by commit rL250025: cmake: Avoid leading space in LLVM_DEFINITIONS. (authored by chfast).

Changed prior to commit:
  http://reviews.llvm.org/D13432?vs=36502&id=37092#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D13432

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

Index: llvm/trunk/cmake/modules/AddLLVMDefinitions.cmake
===================================================================
--- llvm/trunk/cmake/modules/AddLLVMDefinitions.cmake
+++ llvm/trunk/cmake/modules/AddLLVMDefinitions.cmake
@@ -7,7 +7,11 @@
 macro(add_llvm_definitions)
   # We don't want no semicolons on LLVM_DEFINITIONS:
   foreach(arg ${ARGN})
-    set(LLVM_DEFINITIONS "${LLVM_DEFINITIONS} ${arg}")
+    if(DEFINED LLVM_DEFINITIONS)
+      set(LLVM_DEFINITIONS "${LLVM_DEFINITIONS} ${arg}")
+    else()
+      set(LLVM_DEFINITIONS ${arg})
+    endif()
   endforeach(arg)
   add_definitions( ${ARGN} )
 endmacro(add_llvm_definitions)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13432.37092.patch
Type: text/x-patch
Size: 647 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151012/7d44815f/attachment.bin>


More information about the llvm-commits mailing list