diff --git a/CMakeLists.txt b/CMakeLists.txt index cb1f17d2b3..8d9addeb58 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -287,7 +287,9 @@ else() add_definitions(-DHAVE_X11=0) endif() +if(X11_FOUND) check_lib(XRANDR Xrandr) +endif() if(XRANDR_FOUND) add_definitions(-DHAVE_XRANDR=1) else()