For Linux builds, if strlcpt and strlcat are already provided, cmake is
given an empty list of sources to build for the "misc" library. Newer
versions of cmake throw an error for this. In this case, we should just
avoid building the library.
Failure pattern:
CMake Error at external/misc/CMakeLists.txt:35 (add_library):
No SOURCES given to target: misc
CMake Generate step failed. Build files cannot be regenerated correctly.
Fixes#319
We were checking `*t` for end of string instead of `*c`, but `t` never changes, so we would run off of the end of the buffer and output a very large number of config errors before eventually crashing.
* Create codeql-analysis.yml
* cmake: add support for Visual Studio 2019
* enable github actions (aka continuous integration)
basic implementation to enable github actions with:
- triggered each push or pull request
- built on ubuntu (multiple version), macOS, windows
- the binary has debug facilities enabled
- ignore any commit/push on the .github folder
- run all tests
- create an archive with binaries (available for 90 days)
- can manually triggered setting custom cmake flags
* cmake: fix MSVC check
* github actions: remove ubuntu 18.04; add ubuntu 22.04
* github actions: fix windows ci
---------
Co-authored-by: wb2osz <wb2osz@comcast.net>
Fixed with
codespell --skip external,symbols*.txt,tocalls.txt,./cmake/* --ignore-words-list clen,convers,dout,feets,fo,inout,ist,ot,parm,pres,ro,siz,usng,xwindows --summary
running first with only --write-changes and then adding --interactive=2
Co-authored-by: Daniele Forsi <iu5hkx@gmail.com>