summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2018-03-16 14:12:05 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2018-03-16 14:12:05 +0000
commite0a15603dd92d4a6965a5ccc59f5485824f81038 (patch)
tree7369115eaa4012ed29d156b82885012e95d1987a /CMake
parentbdb63b3f07cba389ce3fb584218389349561321c (diff)
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
Diffstat (limited to 'CMake')
-rw-r--r--CMake/options.cmake3
1 files changed, 3 insertions, 0 deletions
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)