summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2008-11-30 02:42:05 +0000
committerEli Friedman <eli.friedman@gmail.com>2008-11-30 02:42:05 +0000
commit56e6d644d0668cb5d644352c64fe1c357b254d58 (patch)
tree03a28612e431b82ca3bc3e8e817820cf01d619f3 /cmake
parent25f4b2b7a3f1f2bbaf954257e7834ba29a6ede7c (diff)
downloadllvm-56e6d644d0668cb5d644352c64fe1c357b254d58.tar.gz
llvm-56e6d644d0668cb5d644352c64fe1c357b254d58.tar.bz2
llvm-56e6d644d0668cb5d644352c64fe1c357b254d58.tar.xz
Fix a link issue I ran into trying compiling LLVM on MinGW with CMake.
Hopefully this doesn't break anyone else's build... it shouldn't unless the MinGW variable means something other than compiling with MinGW. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60273 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-xcmake/modules/AddLLVM.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake
index 85e6230f90..13ecc37f7f 100755
--- a/cmake/modules/AddLLVM.cmake
+++ b/cmake/modules/AddLLVM.cmake
@@ -31,7 +31,7 @@ macro(add_llvm_executable name)
else( MSVC )
add_dependencies(${name} llvm-config.target)
if( MINGW )
- target_link_libraries(${name} DbgHelp psapi)
+ target_link_libraries(${name} imagehlp psapi)
elseif( CMAKE_HOST_UNIX )
target_link_libraries(${name} dl)
endif( MINGW )