Better support for custom commands that generate multiple files needed.

William A. Hoffman billlist at nycap.rr.com
Thu Apr 6 23:16:17 CEST 2006


At 05:08 PM 4/6/2006, Alexander Neundorf wrote:
>On Wednesday 05 April 2006 23:00, you wrote:
>> On Wednesday 05 April 2006 22:36, Alexander Neundorf wrote:
>> > Does adding ${CMAKE_CURRENT_BINARY_DIR}/addressee.h to the list of source
>> > files help ?
>>
>> It doesn't, and I would have been very surprised if it did - how could
>> adding a non-existing generated file as dependency work at all?
>
>If a file is listed in the sources, 
>1) cmake looks whether it exists
>2) if not, it checks whether there is a custom command which generates this 
>file

The problem is that cmake will not know that the custom command generates
the file because the custom command can only have one output right now.
So, the custom command needs to be repeated once for each output.

-Bill



More information about the Kde-buildsystem mailing list