[CMake] How to make executable depend on pre-existing control file?

Trevor Kellaway tkellaway at asl-electronics.co.uk
Thu Apr 12 13:07:06 EDT 2007


Hi,

I'm try to get my link to depend on a pre-existing file that contains
linker segment information "link.prm".

I thought that by just adding this to the executable dependency list
this should work:

	ADD_EXECUTABLE (${THIS_APP} ${THIS_SRC}
${CMAKE_SOURCE_DIR}/link.prm)

Alas, it seems to have no effect. The generated "build.make" contains no
dependency references for "link.prm".

Is this the correct way of doing this?

 - TrevK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070412/84035c13/attachment.htm


More information about the CMake mailing list