[llvm-commits] [llvm] r83820 - /llvm/trunk/examples/ParallelJIT/CMakeLists.txt

Douglas Gregor dgregor at apple.com
Sun Oct 11 21:00:14 PDT 2009


Author: dgregor
Date: Sun Oct 11 23:00:13 2009
New Revision: 83820

URL: http://llvm.org/viewvc/llvm-project?rev=83820&view=rev
Log:
Make ParallelJIT pthreads linking with CMake slightly less broken

Modified:
    llvm/trunk/examples/ParallelJIT/CMakeLists.txt

Modified: llvm/trunk/examples/ParallelJIT/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/ParallelJIT/CMakeLists.txt?rev=83820&r1=83819&r2=83820&view=diff

==============================================================================
--- llvm/trunk/examples/ParallelJIT/CMakeLists.txt (original)
+++ llvm/trunk/examples/ParallelJIT/CMakeLists.txt Sun Oct 11 23:00:13 2009
@@ -4,4 +4,6 @@
   ParallelJIT.cpp
   )
 
-target_link_libraries(ParallelJIT pthread)
+if(HAVE_LIBPTHREAD)
+  target_link_libraries(ParallelJIT pthread)
+endif(HAVE_LIBPTHREAD)





More information about the llvm-commits mailing list