8 Commits
Author SHA1 Message Date
Robert Schmidt 8bffd1666d Avoid complete rebuild on cmake run with git info change
Before this commit, the following will trigger a complete rebuild:

- create another git name (git checkout -b test)
- run cmake again manually (cmake ..)
- run ninja again

The top-level CMakeLists.txt uses add_definitions() to add git
information to all targets; if some git information changes, this will
mark all command lines as dirty, triggering the build.

There is an easy solution: instead of passing this information on the
command line, pass it in a header. This commit uses configure_file() to
generate a file oai_version.h in the build directory with the same
information. Various sources files, e.g., main executables, use this to
output the same information as before. It is then also not necessary to
use header guards, as cmake takes care to create this file.

If cmake is re-run, it will update the header, and trigger only files
including this header will be rebuilt (which can be shown with the above
stpes). The information passed is the same as before, and updates the
information when the old method would have updated it.
2024-08-28 15:57:24 +02:00
Robert Schmidt cdb18d38bf Move CMakeLists.txt into root 2022-09-19 17:29:42 +02:00
frtabu a6dd62a50f Enhance loader to allow library version selection for executables, as ldcptest which do not use the config module. 2021-10-27 14:42:12 +02:00
Robert Schmidt 030e11ba9a Merge branch 'develop' into feature-127-protocol-split 2019-02-21 20:18:35 +01:00
Francois TABURET d49d0b10a6 Update api.md 2018-11-08 20:26:44 +01:00
Francois TABURET eb6afba809 Update api.md 2018-11-08 20:25:54 +01:00
frtabu 83dde26914 fix broken links 2018-11-08 20:16:14 +01:00
frtabu 3515d4316f doc for config module moved from wiki 2018-11-08 19:10:49 +01:00