Made CMake work on OS X Snow Leopard by removing the assumption that a Unix system (which includes OS X) automatically is an X11 system (which OS X is not).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6857 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
a3d42a78b1
commit
2245a98873
@ -47,6 +47,7 @@ IF(WIN32)
|
||||
ENDIF(NOT CYGWIN)
|
||||
ENDIF(WIN32)
|
||||
|
||||
# OS X with X11 is not currently supported!
|
||||
SET(FLTK_X11 1)
|
||||
SET(FLTK_APPLE 0)
|
||||
IF(APPLE)
|
||||
@ -59,7 +60,7 @@ IF(APPLE)
|
||||
ENDIF(NOT FLTK_APPLE_X11)
|
||||
ENDIF(APPLE)
|
||||
|
||||
IF(UNIX)
|
||||
IF(UNIX AND NOT APPLE)
|
||||
FIND_PACKAGE(X11)
|
||||
ADD_DEFINITIONS(-DUSE_X11)
|
||||
SET( FLTK_PLATFORM_DEPENDENT_LIBS ${X11_LIBRARIES} -lm)
|
||||
|
Loading…
Reference in New Issue
Block a user