Brad King wrote:

> On 11/29/2012 01:44 PM, Stephen Kelly wrote:
>> 1) and 2) imply for me that we can wrap the entire snippet I pasted above
>> in if (NOT TARGET grantlee_core).
> 
> Okay with me.  You could also do
> 
>  if(NOT TARGET a AND NOT TARGET b AND ...)
> 
> for all of the targets.  Then there would be almost no chance confusion
> from accidental collision of one target name.
> 

Rather than reindenting everything, can I do this instead?

 if(TARGET a OR TARGET b OR ...)
   return()
 endif()

Thanks,

Steve.


--

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

Reply via email to