diff options
author | Douglas Gregor <doug.gregor@gmail.com> | 2009-10-12 04:00:13 +0000 |
---|---|---|
committer | Douglas Gregor <doug.gregor@gmail.com> | 2009-10-12 04:00:13 +0000 |
commit | cddb07767225ac456e52fd730bc1de8ca0e2b9b2 (patch) | |
tree | 2dcd575400c1ad7c025c70d0dd021327f6986863 | |
parent | 84354c70bd3d1b20ec40883c6caf06fe26c27807 (diff) | |
download | external_llvm-cddb07767225ac456e52fd730bc1de8ca0e2b9b2.tar.gz external_llvm-cddb07767225ac456e52fd730bc1de8ca0e2b9b2.tar.bz2 external_llvm-cddb07767225ac456e52fd730bc1de8ca0e2b9b2.zip |
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
-rw-r--r-- | examples/ParallelJIT/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/ParallelJIT/CMakeLists.txt b/examples/ParallelJIT/CMakeLists.txt index d8dd7084c4..fbdc6e5fc1 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) |