Temporarily Revert "Nuke the old JIT." as it's not quite ready to
[oota-llvm.git] / examples / ParallelJIT / CMakeLists.txt
index d8dd7084c40df83b359ffeb44a8d3b909ed3b6db..8673917f5589d7da3d21818051dbbf166d9bd24e 100644 (file)
@@ -1,7 +1,16 @@
-set(LLVM_LINK_COMPONENTS jit interpreter nativecodegen)
+set(LLVM_LINK_COMPONENTS
+  Core
+  ExecutionEngine
+  Interpreter
+  JIT
+  Support
+  nativecodegen
+  )
 
 add_llvm_example(ParallelJIT
   ParallelJIT.cpp
   )
 
-target_link_libraries(ParallelJIT pthread)
+if(HAVE_LIBPTHREAD)
+  target_link_libraries(ParallelJIT pthread)
+endif(HAVE_LIBPTHREAD)