Don't show -pedantic, -W and -Wall on the output of
[oota-llvm.git] / cmake / modules / AddLLVMDefinitions.cmake
index 0f6d81f736d514b5733220c7784fc5fad3390b5e..2787830bfa9dacf4f63256bf488afa6a1b09c82e 100644 (file)
@@ -5,7 +5,10 @@
 # Beware that there is no implementation of remove_llvm_definitions.\r
 \r
 macro(add_llvm_definitions)\r
-  set(LLVM_DEFINITIONS "${LLVM_DEFINITIONS} ${ARGN}")\r
+  # We don't want no semicolons on LLVM_DEFINITIONS:\r
+  foreach(arg ${ARGN})\r
+    set(LLVM_DEFINITIONS "${LLVM_DEFINITIONS} ${arg}")\r
+  endforeach(arg)\r
   add_definitions( ${ARGN} )\r
 endmacro(add_llvm_definitions)\r
 \r