Mercurial > hg > CbC > CbC_llvm
comparison cmake/modules/AddLLVMDefinitions.cmake @ 95:afa8332a0e37 LLVM3.8
LLVM 3.8
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Oct 2015 17:48:58 +0900 |
parents | 95c75e76d11b |
children |
comparison
equal
deleted
inserted
replaced
84:f3e34b893a5f | 95:afa8332a0e37 |
---|---|
5 # Beware that there is no implementation of remove_llvm_definitions. | 5 # Beware that there is no implementation of remove_llvm_definitions. |
6 | 6 |
7 macro(add_llvm_definitions) | 7 macro(add_llvm_definitions) |
8 # We don't want no semicolons on LLVM_DEFINITIONS: | 8 # We don't want no semicolons on LLVM_DEFINITIONS: |
9 foreach(arg ${ARGN}) | 9 foreach(arg ${ARGN}) |
10 set(LLVM_DEFINITIONS "${LLVM_DEFINITIONS} ${arg}") | 10 if(DEFINED LLVM_DEFINITIONS) |
11 set(LLVM_DEFINITIONS "${LLVM_DEFINITIONS} ${arg}") | |
12 else() | |
13 set(LLVM_DEFINITIONS ${arg}) | |
14 endif() | |
11 endforeach(arg) | 15 endforeach(arg) |
12 add_definitions( ${ARGN} ) | 16 add_definitions( ${ARGN} ) |
13 endmacro(add_llvm_definitions) | 17 endmacro(add_llvm_definitions) |