On Friday 17 February 2012, Brad King wrote: > On 2/17/2012 1:28 PM, Alexander Neundorf wrote: > >> We can adjust it slightly to avoid the policy warning when FooConfig > >> > >> is found and Foo_DIR is set: > >> - search for FindFoo.cmake, use if found > >> - if not found, check new policy setting > >> - if not set, enter config mode and emit both the policy warning > >> > >> and the current error if not found > >> > >> - if set to OLD, enter config mode and use current error if not found > >> - if set to NEW, present error about no FindFoo in module path > > > > Just to make sure I understand: > > behave as described intially, but don't warn if the config file has been > > found via Foo_DIR. > > Right ? > > Ok with me. > > Yes. That will avoid unnecessary policy warnings when things work. > > Please push a proposed implementation to the stage for review. > The documentation of the policy will have a lot of history to > explain this.
Ok :-) Should I do this by continuing in the FindPackage_ImprovedErrorMessages branch or create a new branch, branched away from FindPackage_ImprovedErrorMessages ? Alex -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers