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

Dylan Baker baker.dylan.c at gmail.com
Sat Mar 19 11:07:07 UTC 2016


Reviewed-by: Dylan Baker <baker.dylan.c at gmail.com>

Sent from my Nexus 6.
I'm on mobile, please excuse autocorrect fail.
On Mar 18, 2016 6:07 PM, "Vinson Lee" <vlee at freedesktop.org> wrote:

> 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
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/piglit
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/piglit/attachments/20160319/2e61b6b9/attachment.html>


More information about the Piglit mailing list