diff options
author | Simon Tatham <anakin@pobox.com> | 2022-09-19 14:34:21 +0300 |
---|---|---|
committer | Simon Tatham <anakin@pobox.com> | 2022-09-19 13:40:17 +0300 |
commit | 864b4c27fa67a95b2daa095923878bdba9fc6fcf (patch) | |
tree | 7333540b5a0b0ca7d47b243d1a29b2d2a26628ed | |
parent | ae2c0d40ae61f56994c8d0fc4613ec9758dc2f08 (diff) |
Use GTK_LDFLAGS when testing for Pango.
On FreeBSD, the GTK libraries aren't stored on the standard library
path, so pkg-config has to emit a -L option as well as -l options.
This worked fine during the main build, but the -L option wasn't being
passed through to check_symbol_exists() for the tests of Pango API
function availability.
-rw-r--r-- | cmake/gtk.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/gtk.cmake b/cmake/gtk.cmake index 34396d2f..13ff7705 100644 --- a/cmake/gtk.cmake +++ b/cmake/gtk.cmake @@ -74,6 +74,7 @@ if(GTK_FOUND) # Check for some particular Pango functions. function(pango_check_subscope) set(CMAKE_REQUIRED_INCLUDES ${GTK_INCLUDE_DIRS}) + set(CMAKE_REQUIRED_LINK_OPTIONS ${GTK_LDFLAGS}) set(CMAKE_REQUIRED_LIBRARIES ${GTK_LIBRARIES}) check_symbol_exists(pango_font_family_is_monospace "pango/pango.h" HAVE_PANGO_FONT_FAMILY_IS_MONOSPACE) |