Better support for custom commands that generate multiple files needed.

2006-04-05 Thread David Faure
kdelibs/kabc says: add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/addressee.cpp WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/scripts COMMAND ${PERL_EXECUTABLE} ARGS ${CMAKE_CURRENT_SOURCE_DIR}/scripts/makeaddressee DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/scripts/makeaddressee

Re: Better support for custom commands that generate multiple files needed.

2006-04-05 Thread Alexander Neundorf
On Wednesday 05 April 2006 22:10, David Faure wrote: > kdelibs/kabc says: > > > add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/addressee.cpp >WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/scripts >COMMAND ${PERL_EXECUTABLE} >ARGS ${CMAKE_CURRENT_SOURCE_DIR}/scripts/makeaddressee

Re: Better support for custom commands that generate multiple files needed.

2006-04-05 Thread David Faure
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? make[2]: *

Re: Better support for custom commands that generate multiple files needed.

2006-04-06 Thread William A. Hoffman
At 05:00 PM 4/5/2006, David Faure 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 genera

Re: Better support for custom commands that generate multiple files needed.

2006-04-06 Thread Alexander Neundorf
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-existin

Re: Better support for custom commands that generate multiple files needed.

2006-04-06 Thread William A. Hoffman
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

Re: Better support for custom commands that generate multiple files needed.

2006-04-07 Thread William A. Hoffman
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

Re: Better support for custom commands that generate multiple files needed.

2006-04-07 Thread Alexander Neundorf
On Wednesday 05 April 2006 22:10, David Faure wrote: > kdelibs/kabc says: > > > add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/addressee.cpp >WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/scripts >COMMAND ${PERL_EXECUTABLE} >ARGS ${CMAKE_CURRENT_SOURCE_DIR}/scripts/makeaddressee

Re: Better support for custom commands that generate multiple files needed.

2006-04-07 Thread Joseph Wenninger
Hi ! Am Freitag, 7. April 2006 18:30 schrieb Alexander Neundorf: > On Wednesday 05 April 2006 22:10, David Faure wrote: > > kdelibs/kabc says: > > > > > > add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/addressee.cpp > >WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/scripts > >COMMAN

Re: Better support for custom commands that generate multiple files needed.

2006-04-07 Thread Brad King
Joseph Wenninger wrote: > I haven't looked that deep into cmake yet, but is there a reason, why it > doesn't it just allow multiple OUTPUT parameters ? (OUTPUT xyz OUTPUT > asdf ) ? > > I don't know how portable it is and what happens with parallel builds, but at > least in gnu make you ca

Re: Better support for custom commands that generate multiple files needed.

2006-04-07 Thread Brad King
Brad King wrote: > Joseph Wenninger wrote: > >>I haven't looked that deep into cmake yet, but is there a reason, why it >>doesn't it just allow multiple OUTPUT parameters ? (OUTPUT xyz OUTPUT >>asdf ) ? >> >>I don't know how portable it is and what happens with parallel builds, but at >>le

Re: Better support for custom commands that generate multiple files needed.

2006-04-07 Thread David Faure
On Friday 07 April 2006 23:17, Brad King wrote: > Does anyone know how this works in the old KDE build system? We had this, and I think it's correct: field.cpp: addressee.h addressee.cpp addressee.cpp: addressee.h addressee.cpp addressee.h field.cpp: [...dependencies...] mysrcdir=`cd $(sr

Re: Better support for custom commands that generate multiple files needed.

2006-04-07 Thread Brad King
David Faure wrote: > On Friday 07 April 2006 23:17, Brad King wrote: > >>Does anyone know how this works in the old KDE build system? > > > We had this, and I think it's correct: > > field.cpp: addressee.h addressee.cpp > addressee.cpp: addressee.h > addressee.cpp addressee.h field.cpp: [...dep

Re: Better support for custom commands that generate multiple files needed.

2006-04-11 Thread Brad King
David Faure wrote: > kdelibs/kabc says: > > add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/addressee.cpp >WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/scripts >COMMAND ${PERL_EXECUTABLE} >ARGS ${CMAKE_CURRENT_SOURCE_DIR}/scripts/makeaddressee >DEPENDS ${CMAKE_CURRENT_SOUR