Add the libdrm version check.
authorJunyan He <junyan.he@linux.intel.com>
Mon, 13 Oct 2014 14:23:42 +0000 (22:23 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Tue, 14 Oct 2014 03:54:09 +0000 (11:54 +0800)
Signed-off-by: Junyan He <junyan.he@linux.intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
CMakeLists.txt

index 4046f29..99f8b27 100644 (file)
@@ -115,7 +115,7 @@ ELSE(DRM_FOUND)
 ENDIF(DRM_FOUND)
 
 # DRM Intel
-pkg_check_modules(DRM_INTEL REQUIRED libdrm_intel)
+pkg_check_modules(DRM_INTEL libdrm_intel>=2.4.52)
 IF(DRM_INTEL_FOUND)
   INCLUDE_DIRECTORIES(${DRM_INTEL_INCLUDE_DIRS})
   MESSAGE(STATUS "Looking for DRM Intel - found at ${DRM_INTEL_PREFIX}")