summaryrefslogtreecommitdiff
path: root/CMake/options.cmake
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2018-01-08 20:52:48 +0000
committerManolo Gouy <Manolo>2018-01-08 20:52:48 +0000
commit9f0e9ff8138fcd1ee817fe144282513283b0e331 (patch)
tree71c6fd85d78c3924d48b0db9688ea6944f4ec904 /CMake/options.cmake
parentc462635e88a835377c48497881747a0aa00ace2f (diff)
MacOS + CMake: restore use of OPTION_APPLE_X11 under MacOS 10.13
It's necessary to compile with -mmacosx-version-min=10.8 and to link with -lfontconfig when Xft is used git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12627 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'CMake/options.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 e93ba5bee..60e9fc0e0 100644
--- a/CMake/options.cmake
+++ b/CMake/options.cmake
@@ -434,6 +434,9 @@ if(OPTION_USE_XFT)
set(USE_XFT X11_Xft_FOUND)
list(APPEND FLTK_LDLIBS -lXft)
set(FLTK_XFT_FOUND TRUE)
+ if(APPLE AND OPTION_APPLE_X11)
+ find_library(LIB_fontconfig fontconfig "/opt/X11/lib")
+ endif(APPLE AND OPTION_APPLE_X11)
else()
set(FLTK_XFT_FOUND FALSE)
endif(OPTION_USE_XFT)