[CMake] How to tell if a target is already defined?

J Decker d3ck0r at gmail.com
Tue Oct 19 15:08:02 EDT 2010


ahh excellent thanx.

On Tue, Oct 19, 2010 at 12:06 PM, Tyler Roscoe <tyler at cryptio.net> wrote:
> On Tue, Oct 19, 2010 at 12:05:21PM -0700, J Decker wrote:
>> WIthout adding a bunch of custom addtions, is there something I can
>> test to see if a target is already defined?
>
> Did you try 'if (TARGET ...)'?
>
> tyler
>


More information about the CMake mailing list