CMake/macOS/X11: fix "FINK" search directories
note: use only if found. Todo: check if we can get rid of explicit directory names like /opt/sw, /sw, /opt/X11, ...
This commit is contained in:
parent
37c8c051ba
commit
77c726c79c
@ -879,9 +879,11 @@ if((X11_Xft_FOUND OR NOT USE_PANGOXFT) AND FLTK_USE_PANGO)
|
|||||||
# this covers Debian, Ubuntu, FreeBSD, NetBSD, Darwin
|
# this covers Debian, Ubuntu, FreeBSD, NetBSD, Darwin
|
||||||
if(APPLE AND FLTK_BACKEND_X11)
|
if(APPLE AND FLTK_BACKEND_X11)
|
||||||
find_file(FINK_PREFIX NAMES /opt/sw /sw)
|
find_file(FINK_PREFIX NAMES /opt/sw /sw)
|
||||||
list(APPEND CMAKE_INCLUDE_PATH ${FINK_PREFIX}/include)
|
if(FINK_PREFIX)
|
||||||
list(APPEND FLTK_BUILD_INCLUDE_DIRECTORIES ${FINK_PREFIX}/include/cairo)
|
list(APPEND CMAKE_INCLUDE_PATH ${FINK_PREFIX}/include)
|
||||||
list(APPEND CMAKE_LIBRARY_PATH ${FINK_PREFIX}/lib)
|
list(APPEND FLTK_BUILD_INCLUDE_DIRECTORIES ${FINK_PREFIX}/include/cairo)
|
||||||
|
list(APPEND CMAKE_LIBRARY_PATH ${FINK_PREFIX}/lib)
|
||||||
|
endif(FINK_PREFIX)
|
||||||
endif(APPLE AND FLTK_BACKEND_X11)
|
endif(APPLE AND FLTK_BACKEND_X11)
|
||||||
|
|
||||||
find_file(HAVE_PANGO_H pango-1.0/pango/pango.h ${CMAKE_INCLUDE_PATH})
|
find_file(HAVE_PANGO_H pango-1.0/pango/pango.h ${CMAKE_INCLUDE_PATH})
|
||||||
|
Loading…
Reference in New Issue
Block a user