[Beignet] [PATCH] remove dependency for non-X runtime environment

Guo Yejun yejun.guo at intel.com
Thu Aug 28 16:51:49 PDT 2014


Signed-off-by: Guo Yejun <yejun.guo at intel.com>
---
 CMakeLists.txt | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 82dbc8d..3703a22 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -94,6 +94,10 @@ ELSE(DRM_INTEL_FOUND)
   MESSAGE(STATUS "Looking for DRM Intel - not found")
 ENDIF(DRM_INTEL_FOUND)
 
+# Threads
+Find_Package(Threads)
+
+IF(X11_FOUND)
 # OpenGL (not use cmake helper)
 pkg_check_modules(OPENGL REQUIRED gl)
 IF(OPENGL_FOUND)
@@ -103,10 +107,6 @@ ELSE(OPENGL_FOUND)
   MESSAGE(STATUS "Looking for OpenGL - not found")
 ENDIF(OPENGL_FOUND)
 
-
-# Threads
-Find_Package(Threads)
-
 # Xext
 pkg_check_modules(XEXT REQUIRED xext)
 IF(XEXT_FOUND)
@@ -124,6 +124,7 @@ IF(XFIXES_FOUND)
 ELSE(XFIXES_FOUND)
   MESSAGE(STATUS "Looking for Xfixes - not found")
 ENDIF(XFIXES_FOUND)
+ENDIF(X11_FOUND)
 
 pkg_check_modules(EGL egl)
 IF(EGL_FOUND)
-- 
1.8.3.2



More information about the Beignet mailing list