[CMake] output of custom_command ?

2011-12-01 Thread Anders Wallin
Hi all, I'm building some Lyx documentation with asymptote figures. I'm generating the figures in EPS format like this: add_custom_command( OUTPUT ${ASYFIG}.eps COMMAND asy ${CMAKE_CURRENT_SOURCE_DIR}/${ASYFIG}.asy DEPENDS ${ASYFIG}.asy ) and the the document in PDF fo

Re: [CMake] output of custom_command ?

2011-12-01 Thread David Cole
You are not expressing any dependency between the custom commands, so they may run in parallel, or in any order... If they are connected and the running of one depends on the output of the other, you need to express that. add_custom_command( OUTPUT ${ASYFIG}.eps COMMAND asy ${CMAK

Re: [CMake] output of custom_command ?

2011-12-01 Thread Michael Hertling
On 12/01/2011 03:50 PM, Anders Wallin wrote: > Hi all, > > I'm building some Lyx documentation with asymptote figures. > > I'm generating the figures in EPS format like this: > add_custom_command( > OUTPUT ${ASYFIG}.eps > COMMAND asy ${CMAKE_CURRENT_SOURCE_DIR}/${ASYFIG}.asy >