aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rwxr-xr-xcmake/modules/AddLLVM.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake
index 13ecc37..62d9f31 100755
--- 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)