summaryrefslogtreecommitdiff
blob: 504f6c0987a69dd0d5e0ab4ac52beaeb9f04a49d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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.