mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
CMake: Use pthread library when requested and available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71116 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d5e8d821dd
commit
69b20fd6f9
@ -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
Block a user