[cmake-developers] CMP0065 warning not supressed when --trace used

Brad King brad.king at kitware.com
Thu Jul 14 13:49:18 EDT 2016


On 07/14/2016 01:32 PM, Alan W. Irwin wrote:
> I am addressing this mostly to you because you are the author of
> CMP0065 which has the special property that by default it does not
> warn when the policy is not set.  However, I find it does warn when
> --trace is set which I am fairly sure is a (minor) bug.

This is documented behavior:

 https://cmake.org/cmake/help/v3.6/variable/CMAKE_POLICY_WARNING_CMPNNNN.html
 "running cmake(1) with the --debug-output, --trace, or --trace-expand option
  will also enable the warning."

The idea is that tracing is a verbose debug mode so all policies
warn if they are not set.  Add -DCMAKE_POLICY_WARNING_CMP0065=OLD
to disable the warning.

> should change "thier" (in the third last line) to "their".

Recently fixed:

 Fix typos.
 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=56608618

-Brad



More information about the cmake-developers mailing list