mirror of https://github.com/davisking/dlib.git
Improved finding of X11 on mac os
This commit is contained in:
parent
d96711ed7d
commit
f2868add01
|
@ -145,10 +145,13 @@ if (NOT TARGET dlib)
|
||||||
|
|
||||||
if (NOT DLIB_NO_GUI_SUPPORT)
|
if (NOT DLIB_NO_GUI_SUPPORT)
|
||||||
find_library(xlib X11)
|
find_library(xlib X11)
|
||||||
# make sure X11 is in the include path
|
# Make sure X11 is in the include path. Note that we look for
|
||||||
find_path(xlib_path Xlib.h
|
# Xlocale.h rather than Xlib.h because it avoids finding a partial
|
||||||
|
# copy of the X11 headers on systems with anaconda installed.
|
||||||
|
find_path(xlib_path Xlocale.h
|
||||||
PATHS
|
PATHS
|
||||||
/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include
|
/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include
|
||||||
|
/opt/local/include
|
||||||
PATH_SUFFIXES X11
|
PATH_SUFFIXES X11
|
||||||
)
|
)
|
||||||
if (xlib AND xlib_path)
|
if (xlib AND xlib_path)
|
||||||
|
|
Loading…
Reference in New Issue