# Generated files in the source directory and in the repository

**URL:** <https://forum.mmgtools.org/t/generated-files-in-the-source-directory-and-in-the-repository/105>\
**Category:** Developers Help\
**Created:** [February 7, 2017, 10:44am UTC](https://forum.mmgtools.org/t/generated-files-in-the-source-directory-and-in-the-repository/105 "2017-02-07T10:44:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![felipe](https://forum.mmgtools.org/letter_avatar_proxy/v4/letter/f/90db22/32.png) [@felipe](https://forum.mmgtools.org/u/felipe)\
**Post date:** [February 7, 2017, 10:44am UTC](https://forum.mmgtools.org/t/generated-files-in-the-source-directory-and-in-the-repository/105/1 "2017-02-07T10:44:52Z")

</div>

Hi,  
Why the generated files (lbmmgtypesf.h for example) are written in the source directory, and why theses files are in the repository (git)?

Normally, when using CMake the source directory must stay clean, and all the generated files (headers, .o, .dll, .so) are in the build directory and not in the source directory. this make me lost some of my changes because the user don’t know if the file is generated of is a source file.

Even worst these generated files are committed in the repository!!!

Felipe

---

<div class="post-metadata">

**Author:** ![Algiane](https://forum.mmgtools.org/user_avatar/forum.mmgtools.org/algiane/32/30_2.png) [@Algiane](https://forum.mmgtools.org/u/Algiane)\
**Post date:** [February 8, 2017, 9:04am UTC](https://forum.mmgtools.org/t/generated-files-in-the-source-directory-and-in-the-repository/105/2 "2017-02-08T09:04:07Z")

</div>

Hi Felipe,

I am that sorry that you lost changes!  
We try to avoid such problems by adding a message saying that the file must not be modified on the header of the file (but I am not surprised that you haven’t see it).

The generated files are written in the source directory and committed because, in the past, their generations may fail over some operating systems (we were using the exuberant-ctag package that was not natively provided on Mac OS X for example and not available on Windows). We wanted to create the files automatically if possible for the user but, otherwise, we wanted to provide it…

The scripts have been modified (and the exuberant-ctag dependence have been removed) since but I haven’t check that the file generation works for the main operating systems (without package installations), thus, I didn’t update the cmake files.

I will look at this for the next release and, if possible, remove the files from the source directory and repository.  
Thank you for the feedback.

Best regards,

Algiane

---

<div class="post-metadata">

**Author:** ![felipe](https://forum.mmgtools.org/letter_avatar_proxy/v4/letter/f/90db22/32.png) [@felipe](https://forum.mmgtools.org/u/felipe)\
**Post date:** [February 9, 2017, 7:30am UTC](https://forum.mmgtools.org/t/generated-files-in-the-source-directory-and-in-the-repository/105/3 "2017-02-09T07:30:18Z")

</div>

Thanks for the information,

Felipe

---

<div class="post-metadata">

**Author:** ![Algiane](https://forum.mmgtools.org/user_avatar/forum.mmgtools.org/algiane/32/30_2.png) [@Algiane](https://forum.mmgtools.org/u/Algiane)\
**Post date:** [October 10, 2017, 1:59pm UTC](https://forum.mmgtools.org/t/generated-files-in-the-source-directory-and-in-the-repository/105/4 "2017-10-10T13:59:12Z")

</div>

Hi Felipe,

I close this subject because since the release 5.3.0 we do not generate files in the source directory anymore.

Regards,

Algiane

---

<div class="post-metadata">

**Author:** ![Algiane](https://forum.mmgtools.org/user_avatar/forum.mmgtools.org/algiane/32/30_2.png) [@Algiane](https://forum.mmgtools.org/u/Algiane)\
**Post date:** [October 10, 2017, 1:59pm UTC](https://forum.mmgtools.org/t/generated-files-in-the-source-directory-and-in-the-repository/105/5 "2017-10-10T13:59:22Z")

</div>

Closed on October 10, 2017, 1:59pm UTC


