]> granicus.if.org Git - graphviz/commitdiff
CMake: ensure PangoCairo is found on MinGW
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 9 Jan 2022 11:28:42 +0000 (12:28 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 10 Jan 2022 08:35:27 +0000 (09:35 +0100)
This makes the PNG format available in CMake builds with MinGW.

CHANGELOG.md
cmake/FindPangoCairo.cmake

index c80662d1c939429420bd9d5049bf6b7ed84cc071..81ed0589ed30b9883f285d3b5e69d561508e2dff 100644 (file)
@@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 - Building from scratch with Visual Studio fails #2175
 - Plugins are not configured on MinGW #2176
 - gvpr on MinGW does not support absolute paths #1780
+- PNG format not available in CMake builds with MinGW
 
 ## [2.50.0] – 2021-12-04
 
index 3bc002e6d32ede705ab124455d41d94f0838d6b5..df57a455c1d7834b4ebd27839480fd1c220bf7f9 100644 (file)
@@ -3,7 +3,7 @@ include(FindPackageHandleStandardArgs)
 if(WIN32)
     find_path(PangoCairo_INCLUDE_DIR pango/pangocairo.h PATH_SUFFIXES pango-1.0)
     find_path(GLIB_INCLUDE_DIR glib.h PATH_SUFFIXES glib-2.0)
-    find_path(GLIBCONFIG_INCLUDE_DIR glibconfig.h PATH_SUFFIXES glib-2.0/include)
+    find_path(GLIBCONFIG_INCLUDE_DIR glibconfig.h PATH_SUFFIXES glib-2.0/include lib/glib-2.0/include)
     find_path(HARFBUZZ_INCLUDE_DIR hb.h PATH_SUFFIXES harfbuzz)
 
     find_library(GLIB_LIBRARY NAMES glib-2.0)
@@ -12,13 +12,13 @@ if(WIN32)
     find_library(PangoCairo_LIBRARY NAMES pangocairo-1.0)
     find_library(HARFBUZZ_LIBRARY NAMES harfbuzz)
 
-    find_program(GLIB_RUNTIME_LIBRARY NAMES glib-2.dll)
-    find_program(GOBJECT_RUNTIME_LIBRARY NAMES gobject-2.dll)
+    find_program(GLIB_RUNTIME_LIBRARY NAMES glib-2.dll libglib-2.0-0.dll)
+    find_program(GOBJECT_RUNTIME_LIBRARY NAMES gobject-2.dll libgobject-2.0-0.dll)
     find_program(HARFBUZZ_RUNTIME_LIBRARY NAMES libharfbuzz-0.dll)
-    find_program(PANGO_RUNTIME_LIBRARY NAMES pango-1.dll)
-    find_program(PangoCairo_RUNTIME_LIBRARY NAMES pangocairo-1.dll)
-    find_program(PANGOFT_RUNTIME_LIBRARY NAMES pangoft2-1.dll)
-    find_program(PANGOWIN_RUNTIME_LIBRARY NAMES pangowin32-1.dll)
+    find_program(PANGO_RUNTIME_LIBRARY NAMES pango-1.dll libpango-1.0-0.dll)
+    find_program(PangoCairo_RUNTIME_LIBRARY NAMES pangocairo-1.dll libpangocairo-1.0-0.dll)
+    find_program(PANGOFT_RUNTIME_LIBRARY NAMES pangoft2-1.dll libpangoft2-1.0-0.dll)
+    find_program(PANGOWIN_RUNTIME_LIBRARY NAMES pangowin32-1.dll libpangowin32-1.0-0.dll)
 
     find_package_handle_standard_args(PangoCairo DEFAULT_MSG
         GLIB_INCLUDE_DIR