Update CMakePresets.json

Adding the following cache variable in the CMakePresets.json to enforce modern policies automatically

This ensures all developers can run cmake --preset windows without hitting legacy compatibility or deprecation issues.
This commit is contained in:
Hitesh K V 2025-10-16 12:08:29 +05:30 committed by GitHub
parent 78573b6718
commit cc1d256cff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,9 @@
"description": "Visual Studio 2022 with Clang/LLVM frontend", "description": "Visual Studio 2022 with Clang/LLVM frontend",
"generator": "Visual Studio 17 2022", "generator": "Visual Studio 17 2022",
"toolset": "ClangCL", "toolset": "ClangCL",
"cacheVariables": {
"CMAKE_POLICY_VERSION_MINIMUM": "3.5"
},
"condition": { "condition": {
"type": "equals", "type": "equals",
"lhs": "${hostSystemName}", "lhs": "${hostSystemName}",