From 148ce85b26925e38ced2f196475086eb7884fb62 Mon Sep 17 00:00:00 2001 From: Maxime Gauduin Date: Fri, 13 Mar 2015 12:58:08 +0100 Subject: [PATCH] Include the FindX11 module --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 612de7ca48..b2f6cbdfed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -440,8 +440,7 @@ if(NOT ANDROID) set(USE_X11 0) if(UNIX AND NOT APPLE) - # Note: We do not need to explicitly check for X11 as it is done in the cmake - # FindOpenGL module on linux. + include(FindX11) if(TRY_X11 AND X11_FOUND) set(USE_X11 1) add_definitions(-DHAVE_X11=1)