Bug 73647 - Policy "CMP0022" is not known to this version of CMake.
Summary: Policy "CMP0022" is not known to this version of CMake.
Status: RESOLVED FIXED
Alias: None
Product: piglit
Classification: Unclassified
Component: infrastructure (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) All
: medium blocker
Assignee: Eric Anholt
QA Contact: Eric Anholt
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2014-01-15 05:22 UTC by Vinson Lee
Modified: 2014-01-17 19:00 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Vinson Lee 2014-01-15 05:22:58 UTC
piglit: 43c3d2ab0c44ed53baeebd2ca568922bb34b835a (master)

$ cmake -DPIGLIT_USE_WAFFLE=0 .
CMake Error at CMakeLists.txt:2 (cmake_policy):
  Policy "CMP0022" is not known to this version of CMake.

commit 43c3d2ab0c44ed53baeebd2ca568922bb34b835a
Author: Dylan Baker <baker.dylan.c@gmail.com>
Date:   Sat Dec 28 03:02:53 2013 -0800

    cmake: Suppress warning on cmake 2.8.12+
    
    cmake 2.8.12 Introduced a new policy (CMP0022). Because there are two
    policy options and piglit doesn't explicitly ask for one it defaults to
    the OLD setting, but spews warnings. By setting OLD explicitly this
    warning goes away.
    
    Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
    Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Comment 1 Dylan Baker 2014-01-15 05:27:30 UTC
I have reverted the offending commit.

43c3d2a..d6a1345  master -> master
Comment 2 Chad Versace 2014-01-16 18:25:05 UTC
Dylan, is possible to query the CMake version, and apply CMP0022 only for CMake >= 2.8.12?
Comment 3 Dylan Baker 2014-01-16 23:46:00 UTC
(In reply to comment #2)
> Dylan, is possible to query the CMake version, and apply CMP0022 only for
> CMake >= 2.8.12?

I'm failing to parse that sentence. Is it a question or a statment missing the critical 'it'?
Comment 4 Chad Versace 2014-01-17 19:00:12 UTC
(In reply to comment #3)
> I'm failing to parse that sentence. Is it a question or a statment missing
> the critical 'it'?

Oops. It's a question.

Dylan, is it possible to query the CMake version, and apply CMP0022 only if the version is >= 2.8.12?


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.