Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests : add _CRT_SECURE_NO_WARNINGS for WIN32
This commit adds the compile definition `_CRT_SECURE_NO_WARNINGS` to the `tests` cmake subproject. The motivation for this is that currently the following warnings are displayed when compiling tests: ```console test-llama-grammar.cpp C:\llama.cpp\src\.\llama.cpp(1406,77): warning C4996: 'strerror': This function or variable may be unsafe. Consider using strerror_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\llama.cpp\build\tests\test-llama-grammar.vcxproj] ... ``` This compile definition is set for the `src` subproject and one option could be to push this up to the root CMakeLists.txt file to have it applied to both/all subprojects.
- Loading branch information