Indeed, both file-A.txt and file-B.txt are dependencies of one of my
targets.
giuliano
Bill Hoffman wrote, on 4/21/2009 6:16 PM:
giuliano wrote:
I have something like:
ADD_CUSTOM_COMMAND(
OUTPUT ${BUILD_FOLDER}/file-A.txt
COMMAND ${XSLT}
ARGS --output ${BUILD_FOLDER}/file-A.txt A.xslt
file.xml
DEPENDS file.xml A.xslt
)
ADD_CUSTOM_COMMAND(
OUTPUT ${BUILD_FOLDER}/file-B.txt
COMMAND ${XSLT}
ARGS --output ${BUILD_FOLDER}/file-B.txt B.xslt
file.xml
DEPENDS file.xml B.xslt
)
When I run cmake, only file-A.txt is built. If I reverse the stanzas
for file-A.txt and file-B.txt, then only file-B.txt is built.
It seems as if only the first target that depends on a file gets
built. How do I get cmake to build them all?
I'm running cmake 2.4.
You need a custom target or other target to consume the outputs from
the custom commands.
-Bill
--
giuliano carlini | coder
Aleri - Continuous IntelligenceTM
82 Pioneer Way #106 | Mountain View, CA 94041 | USA
Cell: 650.483.7648 | Office: 650.210.3830 | Fax: 312.210.3811
[email protected] | http://www.aleri.com
begin:vcard
fn:giuliano carlini
n:carlini;giuliano
adr:;;82 Pioneer Way #106;Mountain View;CA;94041;USA
email;internet:[email protected]
title:coder
tel;work:650.210.3830
tel;fax:650.210.3811
tel;cell:650.483.6255
x-mozilla-html:TRUE
url:http://www.aleri.com
version:2.1
end:vcard
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake