[CMake] howto "compile always"

John Biddiscombe (CSCS) jbiddiscombe at skippingmouse.co.uk
Thu Nov 25 04:29:24 EST 2004


If you make your Touch rule a dependency of the target which uses the 
cpp, then shouldn't that do it? (can't remember if ADD_DEPENDENCIES 
works like that...)

JB


Alexander Neundorf wrote:

>Hi, 
> 
>how can I enforce that a special source file is compiled always new ? 
>I tried  
>ADD_CUSTOM_TARGET(recompile_always ALL touch sourcefile.cpp) 
> 
>and this kindof works, but it touches sourcefile.cpp *after* my executable
>has been 
>built. Is there a way to have it touched before everything else ? 
> 
>Bye 
>Alex 
> 
>
>  
>


More information about the CMake mailing list