diff options
author | Peter Wu <peter@lekensteyn.nl> | 2016-05-09 21:54:10 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2016-05-09 20:01:20 +0000 |
commit | 27646e1cb4a6bc1348921dbff2a2590fcdfeba6e (patch) | |
tree | a85568fd47813113c8a22afd0bb5536870b3c4d3 /cmake | |
parent | cb2627c77fad1e6f1f89d8ca1d0e216861d34dfa (diff) |
cmake: fix GTK3 detection via pkg-config
Put QUIET before the module name, otherwise FindPkgConfig tries to
locate a module named QUIET. This fixes a build failure that complains
about missing pango/pango.h.
Tested with GTK 3.20, CMake 3.5.2 on Arch Linux.
Change-Id: I76e487d0f4b7f9fbac4105521c349b392b680923
Reviewed-on: https://code.wireshark.org/review/15314
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/FindGTK3.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/FindGTK3.cmake b/cmake/modules/FindGTK3.cmake index 2a79f6a822..71d503b9f1 100644 --- a/cmake/modules/FindGTK3.cmake +++ b/cmake/modules/FindGTK3.cmake @@ -39,7 +39,7 @@ endif() # use pkg-config to get the directories and then use these values # in the FIND_PATH() and FIND_LIBRARY() calls find_package( PkgConfig ) -pkg_check_modules( PC_GTK3 gtk+-3.0 QUIET ) +pkg_check_modules( PC_GTK3 QUIET gtk+-3.0 ) # Hack around broken .pc files in Windows GTK bundle if( DEFINED GTK3_HINTS ) |