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)