Rework r233647, "llvm/examples: Suppress building a few JIT examples."
[oota-llvm.git] / examples / ExceptionDemo / CMakeLists.txt
index d6619155684341eec5e3f9daa3d2342d9aa56e84..b4354f66f0d6697e0e6eaf9198368af65820d7f5 100644 (file)
@@ -1,5 +1,21 @@
-set(LLVM_LINK_COMPONENTS jit nativecodegen)
+set(LLVM_LINK_COMPONENTS
+  Core
+  ExecutionEngine
+  MC
+  MCJIT
+  RuntimeDyld
+  Support
+  nativecodegen
+  )
+
+# Enable EH and RTTI for this demo
+set(LLVM_REQUIRES_EH 1)
+set(LLVM_REQUIRES_RTTI 1)
+
+set(LLVM_BUILD_EXAMPLES OFF)
 
 add_llvm_example(ExceptionDemo
   ExceptionDemo.cpp
   )
+
+export_executable_symbols(ExceptionDemo)