From 12adce4e1aee92aae975501492b9cde70d970291 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Mon, 12 Oct 2009 04:00:13 +0000 Subject: 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 --- examples/ParallelJIT/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples/ParallelJIT') 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) -- cgit v1.2.3