[odb-users] Is running odb really a build-time task?
Per Edin
info at peredin.com
Wed Mar 25 10:06:26 EDT 2015
At first I did not include the ODB-generated C++ source code in my repository.
When schema versioning was introduced I realized that the changelog
(which was placed in the build directory) must be stored in the
repository. And if the changelog goes into the repository then so do
all other files generated at the same time.
It also made my CMakeLists.txt-files much cleaner, keeping it simple. ;-)
/Per
On Wed, Mar 25, 2015 at 2:42 PM, Boris Kolpackov
<boris at codesynthesis.com> wrote:
> Hi Per,
>
> Per Edin <info at peredin.com> writes:
>
>> What are your thoughts on this?
>
> My general suggestion is, do what works for you. And keep it simple ;-).
>
> I, personally, probably wouldn't keep ODB-generated C++ source code
> in the repository. But adding it to the release distribution of your
> software is not a bad idea (this way users who don't modify your
> object model don't need to install the ODB compiler). On the other
> hand, if you distribute your software by making people clone your
> repository, then checking in the generated code would make a lot
> of sense.
>
> Boris
More information about the odb-users
mailing list