mirror of
https://github.com/SFML/SFML.git
synced 2024-11-29 06:41:05 +08:00
Xrandr was missing in the list of external libraries on Linux
This commit is contained in:
parent
45f23cdbbb
commit
e12b94c989
@ -162,8 +162,15 @@ elseif(SFML_OS_ANDROID)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# find external libraries
|
# find external libraries
|
||||||
|
if(SFML_OS_LINUX OR SFML_OS_FREEBSD)
|
||||||
|
find_package(X11 REQUIRED)
|
||||||
|
if(NOT X11_Xrandr_FOUND)
|
||||||
|
message(FATAL_ERROR "Xrandr library not found")
|
||||||
|
endif()
|
||||||
|
include_directories(${X11_INCLUDE_DIR})
|
||||||
|
endif()
|
||||||
if(NOT SFML_OPENGL_ES)
|
if(NOT SFML_OPENGL_ES)
|
||||||
find_package(OpenGL REQUIRED)
|
find_package(OpenGL REQUIRED)
|
||||||
include_directories(${OPENGL_INCLUDE_DIR})
|
include_directories(${OPENGL_INCLUDE_DIR})
|
||||||
if(SFML_OS_LINUX OR SFML_OS_FREEBSD)
|
if(SFML_OS_LINUX OR SFML_OS_FREEBSD)
|
||||||
find_package(X11 REQUIRED)
|
find_package(X11 REQUIRED)
|
||||||
|
Loading…
Reference in New Issue
Block a user