Bug 94620 - find_package called with invalid argument "CONFIG"
Summary: find_package called with invalid argument "CONFIG"
Status: RESOLVED FIXED
Alias: None
Product: piglit
Classification: Unclassified
Component: infrastructure (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Dylan Baker
QA Contact: Piglit Mailing List
URL:
Whiteboard:
Keywords: bisected, regression
Depends on:
Blocks:
 
Reported: 2016-03-19 00:39 UTC by Vinson Lee
Modified: 2016-03-21 07:12 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Vinson Lee 2016-03-19 00:39:23 UTC
piglit: e28a6528f0265db43143b16518a14fc9e46063d9 (master)

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

$ cmake --version
cmake version 2.8.7


Error is introduced with this commit.

commit 1b5fb027a0f7fcc84f58f18e06c8661fde17a34d
Author: Dylan Baker <baker.dylan.c@gmail.com>
Date:   Wed Feb 10 16:29:47 2016 -0800

    CMake: install bash completions
    
    This uses the bash-completion cmake file provided by bash-completions to
    install the file to the system (if one does a system install). Otherwise
    one can just copy the file to somewhere it will get sourced by their
    bashrc.
    
    Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Comment 1 Vinson Lee 2016-03-21 07:12:25 UTC
commit 4de6df24341548ceaf5870fc3e429e093d5e335c
Author: Vinson Lee <vlee@freedesktop.org>
Date:   Fri Mar 18 17:52:14 2016 -0700

    cmake: Use NO_MODULE instead of CONFIG for older cmake compatibility.
    
    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@freedesktop.org>
    Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.