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

a.neundorf-work at gmx.net a.neundorf-work at gmx.net
Thu Apr 12 13:28:23 EDT 2007


Hi,

On Thursday 12 April 2007 19:07, Trevor Kellaway wrote:
> 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?

I guess you also have a custom command which generates this file ?
Are you sure it's ${CMAKE_SOURCE_DIR}/link.prm and not 
${CMAKE_BINARY_DIR}/link.prm ?

Is this cmake >= 2.4.3 ?

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net


More information about the CMake mailing list