aboutsummaryrefslogtreecommitdiffstats
path: root/examples/ParallelJIT
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-10-12 04:00:13 +0000
committerDouglas Gregor <dgregor@apple.com>2009-10-12 04:00:13 +0000
commit12adce4e1aee92aae975501492b9cde70d970291 (patch)
tree2dcd575400c1ad7c025c70d0dd021327f6986863 /examples/ParallelJIT
parentc6cf5fe595cd3cec3f8320ec29118e0e2b39b28c (diff)
downloadexternal_llvm-12adce4e1aee92aae975501492b9cde70d970291.zip
external_llvm-12adce4e1aee92aae975501492b9cde70d970291.tar.gz
external_llvm-12adce4e1aee92aae975501492b9cde70d970291.tar.bz2
Make ParallelJIT pthreads linking with CMake slightly less broken
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83820 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/ParallelJIT')
-rw-r--r--examples/ParallelJIT/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/ParallelJIT/CMakeLists.txt b/examples/ParallelJIT/CMakeLists.txt
index d8dd708..fbdc6e5 100644
--- a/examples/ParallelJIT/CMakeLists.txt
+++ b/examples/ParallelJIT/CMakeLists.txt
@@ -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)