But with the multiple "OR" technique, if there is a single target name clash, NONE of the targets will be included properly, and quite likely, very mysteriously...
I don't know about the rest of you, but I hate mysterious (and silent) errors. On Thu, Nov 29, 2012 at 2:18 PM, Brad King <brad.k...@kitware.com> wrote: > On 11/29/2012 02:12 PM, Stephen Kelly wrote: > > Rather than reindenting everything, can I do this instead? > > > > if(TARGET a OR TARGET b OR ...) > > return() > > endif() > > Yes. That will be much cleaner too. Please also generate a > comment that explains the motivation. > > Thanks, > -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 >
-- 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