Applied Christian's change to drop unnecessary dependency to X11 libraries we
don't actually use, by asking cmake to link with X11_X11_LIB instead of the catch-all X11_LIBRARIES. git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1845 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
4a4f400ca7
commit
f645974902
@ -312,8 +312,8 @@ ENDIF(CMAKE_COMPILER_IS_GNUCC)
|
|||||||
INCLUDE(CheckIncludeFiles)
|
INCLUDE(CheckIncludeFiles)
|
||||||
IF(UNIX AND NOT(ANDROID OR BLACKBERRY OR FREEGLUT_WAYLAND))
|
IF(UNIX AND NOT(ANDROID OR BLACKBERRY OR FREEGLUT_WAYLAND))
|
||||||
FIND_PACKAGE(X11 REQUIRED)
|
FIND_PACKAGE(X11 REQUIRED)
|
||||||
INCLUDE_DIRECTORIES(${X11_INCLUDE_DIR})
|
INCLUDE_DIRECTORIES(${X11_X11_INCLUDE_PATH})
|
||||||
LIST(APPEND LIBS ${X11_LIBRARIES})
|
LIST(APPEND LIBS ${X11_X11_LIB})
|
||||||
IF(X11_Xrandr_FOUND)
|
IF(X11_Xrandr_FOUND)
|
||||||
SET(HAVE_X11_EXTENSIONS_XRANDR_H TRUE)
|
SET(HAVE_X11_EXTENSIONS_XRANDR_H TRUE)
|
||||||
LIST(APPEND LIBS ${X11_Xrandr_LIB})
|
LIST(APPEND LIBS ${X11_Xrandr_LIB})
|
||||||
|
Reference in New Issue
Block a user