]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/blob - cmake/modules/AddLLVMDefinitions.cmake
2787830bfa9dacf4f63256bf488afa6a1b09c82e
[opencl/llvm.git] / cmake / modules / AddLLVMDefinitions.cmake
1 # There is no clear way of keeping track of compiler command-line\r
2 # options chosen via `add_definitions', so we need our own method for\r
3 # using it on tools/llvm-config/CMakeLists.txt.\r
4 \r
5 # Beware that there is no implementation of remove_llvm_definitions.\r
6 \r
7 macro(add_llvm_definitions)\r
8   # We don't want no semicolons on LLVM_DEFINITIONS:\r
9   foreach(arg ${ARGN})\r
10     set(LLVM_DEFINITIONS "${LLVM_DEFINITIONS} ${arg}")\r
11   endforeach(arg)\r
12   add_definitions( ${ARGN} )\r
13 endmacro(add_llvm_definitions)\r
14 \r