Using libXft means using libfontconfig, so make sure we add that to
the link line.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4875 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/CMakeLists.txt b/CMakeLists.txt
index dd03a5a..9bb3f52 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -257,7 +257,10 @@
if(UNIX AND NOT APPLE)
# No proper handling for extra X11 libs that FLTK might need...
if(X11_Xft_FOUND)
- set(FLTK_LIBRARIES ${FLTK_LIBRARIES} ${X11_Xft_LIB})
+ # Xft headers include references to fontconfig, so we need
+ # to link to that as well
+ find_library(FONTCONFIG_LIB fontconfig)
+ set(FLTK_LIBRARIES ${FLTK_LIBRARIES} ${X11_Xft_LIB} ${FONTCONFIG_LIB})
endif()
if(X11_Xinerama_FOUND)
set(FLTK_LIBRARIES ${FLTK_LIBRARIES} ${X11_Xinerama_LIB})