Include the FindX11 module

This commit is contained in:
Maxime Gauduin 2015-03-13 12:58:08 +01:00
parent 2916aed1f9
commit 148ce85b26

View File

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