CMake: Use pthread library when requested and available.
llvm-svn: 71116
This commit is contained in:
parent
364f3efa53
commit
58e257de2e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue