[CMake] What is the preferred method of establishing the dependence of a custom command on an executable target?

Brandon J. Van Every bvanevery at gmail.com
Sun Apr 8 18:26:32 EDT 2007


Alan W. Irwin wrote:
>
>           t             f
> library =====> target =====> command
>                      \
>                       \ t
>                 ===> executable
>
> This new arrangement bypasses the whole issue of having a custom command
> file depend on an executable

Are you using GET_TARGET_PROPERTY to extract the location of the 
generated .exe?  This is necessary for cross-platform use, i.e. MSVC 
will have Debug and Release directories getting in the way.  The FAQ 
used to be clearer on the need for this; now it seems obfuscated.  I 
will try to wordsmith an entry for this.


Cheers,
Brandon Van Every



More information about the CMake mailing list