[llvm-commits] [llvm] r71116 - /llvm/trunk/cmake/modules/AddLLVM.cmake
Oscar Fuentes
ofv at wanadoo.es
Wed May 6 13:42:04 PDT 2009
Author: ofv
Date: Wed May 6 15:42:04 2009
New Revision: 71116
URL: http://llvm.org/viewvc/llvm-project?rev=71116&view=rev
Log:
CMake: Use pthread library when requested and available.
Modified:
llvm/trunk/cmake/modules/AddLLVM.cmake
Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=71116&r1=71115&r2=71116&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Wed May 6 15:42:04 2009
@@ -34,6 +34,9 @@
target_link_libraries(${name} imagehlp psapi)
elseif( CMAKE_HOST_UNIX )
target_link_libraries(${name} dl)
+ if( LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD )
+ target_link_libraries(${name} pthread)
+ endif()
endif( MINGW )
endif( MSVC )
endmacro(add_llvm_executable name)
More information about the llvm-commits
mailing list