Exit cmake with error if xrandr library was not found.
This commit is contained in:
parent
dc9993d780
commit
7a9e77da01
@ -136,6 +136,9 @@ include_directories(${OPENGL_INCLUDE_DIR})
|
||||
if(UNIX AND NOT APPLE)
|
||||
if(USE_XRANDR)
|
||||
find_package(Xrandr REQUIRED)
|
||||
if(NOT XRANDR_FOUND)
|
||||
message(FATAL_ERROR "XRANDR not found.")
|
||||
endif()
|
||||
else()
|
||||
find_library(IRRLICHT_XF86VM_LIBRARY Xxf86vm)
|
||||
mark_as_advanced(IRRLICHT_XF86VM_LIBRARY)
|
||||
|
Loading…
Reference in New Issue
Block a user