Commit Graph
16 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
francescomani e79b926905 rename sdr to radio 2022-10-19 17:42:26 +02:00
francescomani 539563f03e moving targets/ARCH to sdr/ 2022-09-26 11:17:44 +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
frtabu 00f4890b14 write logging tool documentation 2018-11-16 17:53:51 +01:00
Francois TABURET 9b4d01f48f Update rtusage.md 2018-11-09 08:42:16 +01:00
Francois TABURET 9db199269d Update struct.md 2018-11-09 08:40:48 +01:00
Francois TABURET 36612d8c5d Update arch.md 2018-11-08 20:27:10 +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
Francois TABURET 894fc6072c Update rtusage.md 2018-11-08 20:24:27 +01:00
Francois TABURET 91ba760a02 Update loader.md 2018-11-08 20:21:17 +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