projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5e8d82
)
CMake: Use pthread library when requested and available.
author
Oscar Fuentes
<ofv@wanadoo.es>
Wed, 6 May 2009 20:42:04 +0000
(20:42 +0000)
committer
Oscar Fuentes
<ofv@wanadoo.es>
Wed, 6 May 2009 20:42:04 +0000
(20:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71116
91177308
-0d34-0410-b5e6-
96231b3b80d8
cmake/modules/AddLLVM.cmake
patch
|
blob
|
history
diff --git
a/cmake/modules/AddLLVM.cmake
b/cmake/modules/AddLLVM.cmake
index 13ecc37f7feb9d8a52086603546bf7088d8b2954..62d9f3195bb35f6cbe7f6d4124ae660b0e6cc612 100755
(executable)
--- a/
cmake/modules/AddLLVM.cmake
+++ b/
cmake/modules/AddLLVM.cmake
@@
-34,6
+34,9
@@
macro(add_llvm_executable name)
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)