AddLLVMDefinitions.cmake 492 B

12345678910111213
  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. # Beware that there is no implementation of remove_llvm_definitions.
  5. macro(add_llvm_definitions)
  6. # We don't want no semicolons on LLVM_DEFINITIONS:
  7. foreach(arg ${ARGN})
  8. set(LLVM_DEFINITIONS "${LLVM_DEFINITIONS} ${arg}")
  9. endforeach(arg)
  10. add_definitions( ${ARGN} )
  11. endmacro(add_llvm_definitions)