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
This commit is contained in:
Douglas Gregor 2009-10-12 04:00:13 +00:00
parent c6cf5fe595
commit 12adce4e1a

View 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)