summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorOscar Fuentes <ofv@wanadoo.es>2011-01-27 19:29:48 +0000
committerOscar Fuentes <ofv@wanadoo.es>2011-01-27 19:29:48 +0000
commitd73e5751b217586cf35ad720c9a60a8162227acf (patch)
treea996cb74b2a446f3175f02c6ad084bafb130153c /cmake
parent7e7fc1052afa9a7b5bcc94d50bc5f0403a6e7470 (diff)
downloadllvm-d73e5751b217586cf35ad720c9a60a8162227acf.tar.gz
llvm-d73e5751b217586cf35ad720c9a60a8162227acf.tar.bz2
llvm-d73e5751b217586cf35ad720c9a60a8162227acf.tar.xz
Don't show -pedantic, -W and -Wall on the output of
llvm-config --cflags --cxxflags --cppflags We shouldn't impose those flags on people who use llvm-config for building their own projects. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124399 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/AddLLVMDefinitions.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/modules/AddLLVMDefinitions.cmake b/cmake/modules/AddLLVMDefinitions.cmake
index 0f6d81f736..2787830bfa 100644
--- a/cmake/modules/AddLLVMDefinitions.cmake
+++ b/cmake/modules/AddLLVMDefinitions.cmake
@@ -5,7 +5,10 @@
# Beware that there is no implementation of remove_llvm_definitions.
macro(add_llvm_definitions)
- set(LLVM_DEFINITIONS "${LLVM_DEFINITIONS} ${ARGN}")
+ # We don't want no semicolons on LLVM_DEFINITIONS:
+ foreach(arg ${ARGN})
+ set(LLVM_DEFINITIONS "${LLVM_DEFINITIONS} ${arg}")
+ endforeach(arg)
add_definitions( ${ARGN} )
endmacro(add_llvm_definitions)