mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 12:51:05 +08:00
CMake configuration is now stopped if the Xrandr library (Linux) is not found
This commit is contained in:
parent
d6c1fda5bd
commit
78a625de22
@ -100,6 +100,9 @@ endif()
|
|||||||
find_package(OpenGL REQUIRED)
|
find_package(OpenGL REQUIRED)
|
||||||
if(LINUX)
|
if(LINUX)
|
||||||
find_package(X11 REQUIRED)
|
find_package(X11 REQUIRED)
|
||||||
|
if(NOT X11_Xrandr_FOUND)
|
||||||
|
message(FATAL_ERROR "Xrandr library not found")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# build the list of external libraries to link
|
# build the list of external libraries to link
|
||||||
|
Loading…
Reference in New Issue
Block a user