From e0a15603dd92d4a6965a5ccc59f5485824f81038 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Fri, 16 Mar 2018 14:12:05 +0000 Subject: CMake/fltk-config: update fltk-config (LDFLAGS) for MacOS. This is a preliminary patch to enable linking with pango on MacOS when fltk-config is used. A better solution is under development. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12759 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- CMake/options.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMake/options.cmake b/CMake/options.cmake index 1af4c4421..4583a83f1 100644 --- a/CMake/options.cmake +++ b/CMake/options.cmake @@ -488,6 +488,9 @@ if(X11_Xft_FOUND AND OPTION_USE_PANGO) endif(NOT GLIB_H_PATH) include_directories(${PANGO_H_PREFIX}/pango-1.0 ${GLIB_H_PATH} ${PANGOLIB_DIR}/glib-2.0/include) list(APPEND FLTK_LDLIBS -lpango-1.0 -lpangoxft-1.0 -lgobject-2.0) + if (APPLE) + set (LDFLAGS "${LDFLAGS} -L/sw/lib") + endif (APPLE) endif(HAVE_LIB_PANGO AND HAVE_LIB_PANGOXFT AND HAVE_LIB_GOBJECT) endif(X11_Xft_FOUND AND OPTION_USE_PANGO) -- cgit v1.2.3