[Piglit] [PATCH] cmake: Use NO_MODULE instead of CONFIG for older cmake compatibility.

Vinson Lee vlee at freedesktop.org
Sat Mar 19 01:06:56 UTC 2016


CONFIG is not available until cmake 2.8.8.

Fix build error with cmake < 2.8.8.

CMake Error at CMakeLists.txt:219 (find_package):
  find_package called with invalid argument "CONFIG"

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94620
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6d7765c23396..3b9f5f362f9c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -216,7 +216,7 @@ else ()
 	find_package(PythonMako 0.8.0 REQUIRED)
 endif (PYTHON_VERSION_STRING VERSION_GREATER 3.4.999999)
 
-find_package(bash-completion CONFIG)
+find_package(bash-completion NO_MODULE)
 
 # Default to compiling with debug information (`gcc -g`):
 if(NOT CMAKE_BUILD_TYPE)
-- 
2.5.0



More information about the Piglit mailing list