-
Lina Versace authored
CMake is so stupid sometimes :( When building with waffle, piglit requires waffle >= 1.2.2. Piglit's CMake captures the required by calling pkg_check_modules(WAFFLE REQUIRED waffle-1>=1.2.2) However, we cannot reliably check the version with pkg_check_modules(). The problem is that, if one passes a required version to pkg_check_modules(), CMake validates the required version at most once for the lifetime of the source tree. If someone changes the required version by editing the CMakeLists, CMake fails to detect the new requirement. To workaround this deficiency of CMake, check the version instead with if(WAFFLE_VERSION VERSION_LESS 1.2.2) Signed-off-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Ian Romanick <idr@freedesktop.org>
62b711b4