Fix a link issue I ran into trying compiling LLVM on MinGW with CMake.
authorEli Friedman <eli.friedman@gmail.com>
Sun, 30 Nov 2008 02:42:05 +0000 (02:42 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sun, 30 Nov 2008 02:42:05 +0000 (02:42 +0000)
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

cmake/modules/AddLLVM.cmake

index 85e6230f90f487700c9c5be4d5d87b4a211dc69e..13ecc37f7feb9d8a52086603546bf7088d8b2954 100755 (executable)
@@ -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 )