Skip to content

Commit a20eed2

Browse files
author
Colin Robertson
authored
Merge pull request MicrosoftDocs#1600 from esweet431/patch-10
Change "import existing cache" to "open existing cache"
2 parents c6c8f64 + 8216bc4 commit a20eed2

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,6 @@ If you need to pass arguments to an executable at debug time, you can use anothe
5252
> [!NOTE]
5353
> For other kinds of Open Folder projects, two additional JSON files are used: **CppProperties.json** and **tasks.vs.json**. Neither of these are relevant for CMake projects.
5454
55-
## Import an existing cache
56-
57-
When you import an existing CMakeCache.txt file, Visual Studio automatically extracts customized variables and creates a pre-populated **CMakeSettings.json** file based on them. The original cache is not modified in any way and can still be used from the command line or with whatever tool or IDE was used to generate it. The new **CMakeSettings.json** file is placed alongside the project’s root CMakeLists.txt. Visual Studio generates a new cache based the settings file. You can override automatic cache generation in the **Tools > Options > CMake > General** dialog.
58-
59-
Not everything in the cache is imported. Properties such as the generator and the location of the compilers are replaced with defaults that are known to work well with the IDE.
60-
6155
## Open an existing cache
6256

6357
When you open an existing CMake cache, Visual Studio will not attempt to manage your cache and build tree for you. This gives your custom or preferred tools complete control over how CMake configures your project. You can open an existing cache in Visual Studio via **File > Open > CMake** and navigating to an existing CMakeCache.txt. Alternatively, if you have already opened the project in Visual Studio, you can add an existing cache to it the same way you would add a new configuration. For more information, see our blog post on [opening an existing cache in Visual Studio](https://devblogs.microsoft.com/cppblog/open-existing-cmake-caches-in-visual-studio/).

0 commit comments

Comments
 (0)