llvm/examples/ExceptionDemo/CMakeLists.txt
raw| 1 | set(LLVM_LINK_COMPONENTS |
| 2 | Core |
| 3 | ExecutionEngine |
| 4 | ORCJIT |
| 5 | Support |
| 6 | Target |
| 7 | nativecodegen |
| 8 | ) |
| 9 | |
| 10 | # Enable EH and RTTI for this demo |
| 11 | if(NOT LLVM_ENABLE_EH) |
| 12 | message(FATAL_ERROR "ExceptionDemo must require EH.") |
| 13 | endif() |
| 14 | |
| 15 | add_llvm_example(ExceptionDemo |
| 16 | ExceptionDemo.cpp |
| 17 | |
| 18 | EXPORT_SYMBOLS |
| 19 | ) |