--- CMakeLists.txt 2012-07-26 03:07:38.000000000 +0800 +++ CMakeLists.txt.new 2015-08-10 10:25:42.370061930 +0800 @@ -15,13 +15,12 @@ Find_Package(CURL REQUIRED) Find_Package(LibArchive REQUIRED) Find_Package(OpenSSL REQUIRED) +Find_Package(X11 REQUIRED) #Use openGL only when compiling with HARDWARE_ACCELERATION. #Otherwise we try to find XLib. if(HARDWARE_ACCELERATION) Find_Package(OpenGL REQUIRED) -else(HARDWARE_ACCELERATION) - INCLUDE(FindX11) endif(HARDWARE_ACCELERATION) #Add the include dirs of the libraries. @@ -33,6 +32,7 @@ INCLUDE_DIRECTORIES(${CURL_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${LibArchive_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${OPENSSL_INCLUDE_DIR}) +INCLUDE_DIRECTORIES(${X11_INCLUDE_DIR}) #Use openGL only when compiling with HARDWARE_ACCELERATION. if(HARDWARE_ACCELERATION) INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR})