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

Tyler Roscoe tyler at cryptio.net
Tue Oct 19 15:06:24 EDT 2010


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