[vtk-developers] Dashboard build failures

David Gobbi david.gobbi at gmail.com
Mon Oct 13 14:30:24 EDT 2014

On Mon, Oct 13, 2014 at 12:22 PM, Ben Boeckel <ben.boeckel at kitware.com> wrote:
> On Mon, Oct 13, 2014 at 10:35:14 -0600, David Gobbi wrote:
>> The problem is, when I add variable_watch(), it warns the next time
>> FindPythonLibs is called.  And the message it prints isn't informative.
> You could check the type of access being done to the variable. Setting
> the watch after the find_package for PythonLibs should be sufficient
> (unless we're calling it multiple times).

It is called multiple times.  It would be really convenient if cmake had a
variable_unwatch() function.

Or even better, the cmake set() function could have a DEPRECATED
flag so that any use of the variable outside that set() call would trigger
a deprecation warning.

 - David

More information about the vtk-developers mailing list