Exit cmake with error if xrandr library was not found.

This commit is contained in:
Deve 2014-08-13 19:34:28 +02:00
parent dc9993d780
commit 7a9e77da01

View File

@ -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)