[CMake] Avoid overwriting files at installation time

Brandon J. Van Every bvanevery at gmail.com
Wed Aug 30 16:05:32 EDT 2006


Marco Canini wrote:
> Hi,
> that's correct.
> In this case a config file should be installed only if it doesn't exist
> in order to preserve what the user wrote.
> But I guess cmake doesn't support it yet.
>   

Nothing is stopping you from bracketing your INSTALL with IF(EXISTS 
filename).


Cheers,
Brandon Van Every






More information about the CMake mailing list