Better support for custom commands that generate multiple files needed.

William A. Hoffman billlist at nycap.rr.com
Fri Apr 7 15:22:04 CEST 2006


At 05:16 PM 4/6/2006, William A. Hoffman wrote:
>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.

Brad just pointed out to me that this may break parallel builds.  So, I think for now
there is nothing we can do about it.  We will have to look into a fix at the
cmake level.

-Bill




More information about the Kde-buildsystem mailing list