From: Douglas Gregor Date: Mon, 12 Oct 2009 04:00:13 +0000 (+0000) Subject: Make ParallelJIT pthreads linking with CMake slightly less broken X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=12adce4e1aee92aae975501492b9cde70d970291;p=oota-llvm.git 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 --- diff --git a/examples/ParallelJIT/CMakeLists.txt b/examples/ParallelJIT/CMakeLists.txt index d8dd7084c40..fbdc6e5fc10 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)