summaryrefslogtreecommitdiff
path: root/CMake/options.cmake
diff options
context:
space:
mode:
authorTaeril <taeril@kraina.org>2020-06-21 13:40:51 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2020-06-21 14:29:18 +0200
commit930013638bfc5d7765ca1bf2b680640d79bec2da (patch)
tree7a0f3707f6822306fa7db493be156e38faf694b5 /CMake/options.cmake
parent69d58f485a1ea6d5182329bfccda7c2138e11d7c (diff)
Quick fix for inability to link with pango from fltk-config
Commit 6fe226cb804d000b29ea53e08acc505267fd44de introduced use of pkg-config which broke linking from fltk-config if FLTK was configured to use pango library. This patch duplicates line from another if branch that just adds libraries assuming that if pkg-config found pangoxft that there are present all it's requirements.
Diffstat (limited to 'CMake/options.cmake')
-rw-r--r--CMake/options.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMake/options.cmake b/CMake/options.cmake
index 89dc68b4f..559b68683 100644
--- a/CMake/options.cmake
+++ b/CMake/options.cmake
@@ -469,6 +469,7 @@ if(X11_Xft_FOUND AND OPTION_USE_PANGO)
find_library(HAVE_LIB_PANGO pango-1.0 ${CMAKE_LIBRARY_PATH})
find_library(HAVE_LIB_PANGOXFT pangoxft-1.0 ${CMAKE_LIBRARY_PATH})
set(USE_PANGO TRUE)
+ list(APPEND FLTK_LDLIBS -lpango-1.0 -lpangoxft-1.0 -lgobject-2.0)
else(PANGOXFT_FOUND)
#this covers Debian, Ubuntu, FreeBSD, NetBSD, Darwin