build: raise error on missing or multiple main function in a scratch target

This commit is contained in:
Gabriel Ferreira
2023-12-15 22:47:36 -03:00
parent 3be56ea139
commit ff566e348a
2 changed files with 17 additions and 6 deletions

View File

@@ -44,6 +44,7 @@ Changes from ns-3.40 to ns-3-dev
* The `restrict` warning has been disabled in GCC versions 12.1-12.3.1.
* Raised minimum CMake version to 3.13.
* Raised minimum C++ version to C++20.
* Added guard rails for scratch targets missing or containing more than one `main` function.
### Changed behavior