Mercurial > hg > CbC > CbC_llvm
annotate cmake/modules/AddLLVMDefinitions.cmake @ 0:95c75e76d11b LLVM3.4
LLVM 3.4
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Dec 2013 13:56:28 +0900 |
parents | |
children | afa8332a0e37 |
rev | line source |
---|---|
0 | 1 # There is no clear way of keeping track of compiler command-line |
2 # options chosen via `add_definitions', so we need our own method for | |
3 # using it on tools/llvm-config/CMakeLists.txt. | |
4 | |
5 # Beware that there is no implementation of remove_llvm_definitions. | |
6 | |
7 macro(add_llvm_definitions) | |
8 # We don't want no semicolons on LLVM_DEFINITIONS: | |
9 foreach(arg ${ARGN}) | |
10 set(LLVM_DEFINITIONS "${LLVM_DEFINITIONS} ${arg}") | |
11 endforeach(arg) | |
12 add_definitions( ${ARGN} ) | |
13 endmacro(add_llvm_definitions) |