From 7a9e77da01235bcd1c09bac43dc1dae2980b927a Mon Sep 17 00:00:00 2001 From: Deve Date: Wed, 13 Aug 2014 19:34:28 +0200 Subject: [PATCH] Exit cmake with error if xrandr library was not found. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 322c12f9a..d490b6bb7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)