[CMake] configure_file and Source Control
Mike Arthur
mike at mikearthur.co.uk
Wed Oct 8 11:12:12 EDT 2008
On Wednesday 08 October 2008 16:06:27 LaViolette, Alan wrote:
> Hi, I am using configure_file to produce some build varient files. I
> need to have these output files in source control so other developers
> can access the results without needeing to build this library. To do
> this I need to checkout the output file before it is writen.
>
> Does anyone have a recommendation on how to do this? Could CMake
> support this?
>
> My current idea is to run a script that will check them out before I run
> CMake. I would prefer if I only checked them out if they are modified.
>
> I was also thinking I could have configure_file generate a temp file and
> create a custom build rule to checkout and copy the file to the real
> name.
This isn't really a CMake answer but I'd strongly advocate not having build-
generated files in source control. They will only need to build the library
once.
--
Cheers,
Mike Arthur
http://mikearthur.co.uk/
More information about the CMake
mailing list