[CMake] Two commands for a single dependency
James Bigler
bigler at cs.utah.edu
Fri Aug 18 17:27:56 EDT 2006
James Bigler wrote:
> Alan W. Irwin wrote:
>> On 2006-08-18 14:45-0600 James Bigler wrote:
>>
>>> So this would be this (for the last rule)?
>>>
>>> ADD_CUSTOM_COMMAND(OUTPUT child.o
>>> COMMAND g++
>>> ARGS -c child.cc -o child.o -MD
>>> DEPENDS ${CXXPATH}/child.cc
>>> )
>>>
>>> ADD_CUSTOM_COMMAND(OUTPUT child.o
>>> COMMAND cp
>>> ARGS child.d child-copy.d
>>> DEPENDS ${CXXPATH}/child.cc
>>> )
>>>
>>
>> No.
>>
>> You can have multiple COMMAND statements for just one ADD_CUSTOM_COMMAND
>> command. See the ADD_CUSTOM_COMMAND documentation.
>
> Thanks. I guess my 2.0 version book is way out of date.
>
> Is there a copy of this web page for the 2.2 version?
>
> http://www.cmake.org/HTML/Documentation.html
Never mind, the contents seem to be in the man page.
James
More information about the CMake
mailing list