Make ParallelJIT pthreads linking with CMake slightly less broken
authorDouglas Gregor <dgregor@apple.com>
Mon, 12 Oct 2009 04:00:13 +0000 (04:00 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 12 Oct 2009 04:00:13 +0000 (04:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83820 91177308-0d34-0410-b5e6-96231b3b80d8

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)