On 02/02/2011 03:50 PM, Ilja Golshtein wrote:
> 02.02.2011, 17:37, "Michael Hertling" <mhertl...@online.de>:
>>>  Obviously I can choose arbitrary executable and link my target to it.
>>
>> Preferably, choose the targets which need the version.h header.
> 
> All executables (well ... but some tests) require version.h
> 
> Looks like the cleanest approach is to have all executables dependent on 
> version.h

Yes, and this exactly reflects the actual situation: Your executables
need version.h, so their corresponding targets should depend on the
target which generates that header. Nevertheless, dependencies of
built-in targets would be quite convenient sometimes.

Regards,

Michael
_______________________________________________
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://www.cmake.org/mailman/listinfo/cmake

Reply via email to