diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2011-01-27 19:29:48 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2011-01-27 19:29:48 +0000 |
commit | 632ad9bfe60dca1475da69ec5993879b211fa97c (patch) | |
tree | f100a7f3cf08bbbc8ecc037d16a740668fcc5631 /llvm/cmake | |
parent | bbc4eea2c26960ced56906d4a2573c8c1d291dc2 (diff) | |
download | bcm5719-llvm-632ad9bfe60dca1475da69ec5993879b211fa97c.tar.gz bcm5719-llvm-632ad9bfe60dca1475da69ec5993879b211fa97c.zip |
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.
llvm-svn: 124399
Diffstat (limited to 'llvm/cmake')
-rw-r--r-- | llvm/cmake/modules/AddLLVMDefinitions.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/cmake/modules/AddLLVMDefinitions.cmake b/llvm/cmake/modules/AddLLVMDefinitions.cmake index 0f6d81f736d..2787830bfa9 100644 --- a/llvm/cmake/modules/AddLLVMDefinitions.cmake +++ b/llvm/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)
|