Add libuuid to required system libraries list for mingw.
authorYaron Keren <yaron.keren@gmail.com>
Sat, 24 Oct 2015 19:27:28 +0000 (19:27 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Sat, 24 Oct 2015 19:27:28 +0000 (19:27 +0000)
This list is produced by llvm-config --system-libs to be used
by external programs using the llvm libraries, such as creduce.
In r250501 llvm/Support/Windows/Path.inc started to use the constant
FOLDERID_Profile from libuuid.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251201 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/CMakeLists.txt

index badfd99b67342fb032d9fe1268d729962e56911b..784e00e15b9e897d0337193c882be8ecdf9c8f14 100644 (file)
@@ -1,7 +1,8 @@
 set(system_libs)
 if( NOT MSVC )
   if( MINGW )
-    set(system_libs ${system_libs} psapi shell32 ole32)
+    # libuuid required for FOLDERID_Profile usage in lib/Support/Windows/Path.inc.
+    set(system_libs ${system_libs} psapi shell32 ole32 uuid)
   elseif( CMAKE_HOST_UNIX )
     if( HAVE_LIBRT )
       set(system_libs ${system_libs} rt)