Skip to content

Commit 3e2418f

Browse files
author
Colin Robertson
authored
Make the grammar checker happy
Simplify for internationalization. Satisfy the grammar checker. Fix code block style.
1 parent 2acb31b commit 3e2418f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/build/cmake-projects-in-visual-studio.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,15 @@ You can add an existing CMake cache to an open project. It's done the same way y
6565

6666
### Advanced CMake cache troubleshooting
6767

68-
As described in our blog post on [multi-root workspaces and file-based API](https://devblogs.microsoft.com/cppblog/visual-studio-code-cmake-tools-extension-multi-root-workspaces-and-file-based-api/), Visual Studio uses CMake's [file-based API](https://cmake.org/cmake/help/latest/manual/cmake-file-api.7.html) for CMake versions >= 3.14 to populate the editor with information specific to your project structure. Before generating the CMake cache it may be necessary for your custom or preferred tools create a query file named **.cmake/api/v1/query/client-MicrosoftVS/query.json** in your build output folder (the one containing **CMakeCache.txt**) with this content:
69-
```
68+
Visual Studio uses CMake's [file-based API](https://cmake.org/cmake/help/latest/manual/cmake-file-api.7.html) (in CMake versions 3.14 and later) to populate the editor with information specific to your project structure. For more information, see the C++ team blog post on [multi-root workspaces and file-based API](https://devblogs.microsoft.com/cppblog/visual-studio-code-cmake-tools-extension-multi-root-workspaces-and-file-based-api/).
69+
70+
Before generating the CMake cache, your custom or preferred tools may need to create a query file named **.cmake/api/v1/query/client-MicrosoftVS/query.json** in your build output folder (the folder that contains **CMakeCache.txt**). The query file should contain this content:
71+
72+
```json
7073
{"requests":[{"kind":"cache","version":2},{"kind":"cmakeFiles","version":1},{"kind":"codemodel","version":2}]}
7174
```
7275

73-
When your custom or preferred tools generate your cache, CMake will place files under **.cmake/api/v1/response** that Visual Studio will use to populate the editor with information specific to your project structure.
76+
When your custom or preferred tools generate your cache, CMake places files under **.cmake/api/v1/response** that Visual Studio uses to populate the editor with information specific to your project structure.
7477

7578
## Building CMake projects
7679

0 commit comments

Comments
 (0)