]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
tests : add _CRT_SECURE_NO_WARNINGS for WIN32 (#8231)
authorDaniel Bevenius <redacted>
Thu, 4 Jul 2024 10:53:42 +0000 (12:53 +0200)
committerGitHub <redacted>
Thu, 4 Jul 2024 10:53:42 +0000 (13:53 +0300)
commitf8c4c0738d72d2162736edd72dd5db8b269adca1
treee38627e79a74b703af7c0776a5955f5ab26d5988
parent402d6feffa0572d1c7a957901b6d1702bd188484
tests : add _CRT_SECURE_NO_WARNINGS for WIN32 (#8231)

This commit adds the compile definition `_CRT_SECURE_NO_WARNINGS`
to the root cmake subproject.

The motivation for this is that currently the following warnings are
displayed when compiling the tests and common cmake subprojects:
```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 currently set for the `src` subproject
and this change moves into the root cmake project so that it is applied
to all cmake subprojects.
CMakeLists.txt
src/CMakeLists.txt