Merge these tests.
[oota-llvm.git] / examples / ParallelJIT / CMakeLists.txt
index d8dd7084c40df83b359ffeb44a8d3b909ed3b6db..fbdc6e5fc10b4ecc2516737566bba566e06181b0 100644 (file)
@@ -4,4 +4,6 @@ add_llvm_example(ParallelJIT
   ParallelJIT.cpp
   )
 
-target_link_libraries(ParallelJIT pthread)
+if(HAVE_LIBPTHREAD)
+  target_link_libraries(ParallelJIT pthread)
+endif(HAVE_LIBPTHREAD)