forked from OSchip/llvm-project
Fix link failure on MinGW due to use of CoInitialize.
ole32 is considered a default library with MSVC, but apparently not with MinGW. Since we use CoInitialize, we need to explicitly link against it in LLVMSupport for a MinGW build. llvm-svn: 236654
This commit is contained in:
parent
c007aa41b6
commit
6d6e947916
|
@ -1,7 +1,7 @@
|
||||||
set(system_libs)
|
set(system_libs)
|
||||||
if( NOT MSVC )
|
if( NOT MSVC )
|
||||||
if( MINGW )
|
if( MINGW )
|
||||||
set(system_libs ${system_libs} imagehlp psapi shell32)
|
set(system_libs ${system_libs} imagehlp psapi shell32 ole32)
|
||||||
elseif( CMAKE_HOST_UNIX )
|
elseif( CMAKE_HOST_UNIX )
|
||||||
if( HAVE_LIBRT )
|
if( HAVE_LIBRT )
|
||||||
set(system_libs ${system_libs} rt)
|
set(system_libs ${system_libs} rt)
|
||||||
|
|
Loading…
Reference in New Issue