[CMake] Test for OUTPUT rule

xantares 09 xantares09 at hotmail.com
Thu Oct 3 03:49:56 EDT 2013


Hi,

I can check if a target has been created:

add_custom_target(foo ...)
if (TARGET foo)
...

But I can't test for if an output rule has been created for foo.x:

add_custom_command(OUTPUT foo.x)
if (... foo.x)

Or is it possible ?

x.





 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20131003/7ff2b02b/attachment.htm>


More information about the CMake mailing list