On 02/10/2013 10:14 AM, Alexander Neundorf wrote: > 1) either put a check for the required targets in the generated targets file, > and make find_package() fail by setting foo_FOUND to FALSE. This should be > relatively straightforward to implement, and needs only code in the generated > targets file. This is good.
I like this approach better than the second one also. > On the downside, this will probably make the cmake > run fail for (some ?) projects where it currently succeeds, although they do > not take the dependency order into account when searching packages. I think we can add a policy for this. If not set, warn and use OLD. If OLD, silently accept the missing targets. If NEW, error. Of course no projects will currently be setting the policy to OLD so they will get warnings. Moving forward, projects will get errors once they set the policy to NEW either explicitly or by the minimum required version of CMake. -Brad -- 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
