Make ParallelJIT pthreads linking with CMake slightly less broken

llvm-svn: 83820
This commit is contained in:
Douglas Gregor 2009-10-12 04:00:13 +00:00
parent 396ed2bcaa
commit 3a66952bea
1 changed files with 3 additions and 1 deletions

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)