OSDN Git Service

Refactor duplicated code for linking with pthread.
[android-x86/external-llvm.git] / examples / ParallelJIT / CMakeLists.txt
index 07c0a08..e85b470 100644 (file)
@@ -11,6 +11,4 @@ add_llvm_example(ParallelJIT
   ParallelJIT.cpp
   )
 
-if(HAVE_LIBPTHREAD)
-  target_link_libraries(ParallelJIT pthread)
-endif(HAVE_LIBPTHREAD)
+target_link_libraries(ParallelJIT ${PTHREAD_LIB})