Skip to content

Commit 8216bc4

Browse files
authored
Fixed first 3 sections
This change updates the first 3 sections - CMake Projects in Visual Studio, Installation, and IDE Integration to include my changes from 1598 and 1599. This patch should now include all of my proposed changes.
1 parent f27e7a8 commit 8216bc4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ CMake is a cross-platform, open-source tool for defining build processes that ru
1313
1414
::: moniker range="vs-2019"
1515

16-
Visual Studio 2019 introduces the **CMake Settings editor** and other improvements over Visual Studio 2017. The **C++ CMake tools for Windows** component uses the **Open Folder** feature to enable the IDE to consume CMake project files (such as CMakeLists.txt) directly for the purposes of IntelliSense and browsing. Both Ninja and Visual Studio generators are supported. If you use a Visual Studio generator, a temporary project file is generated and passed to msbuild.exe, but is never loaded for IntelliSense or browsing purposes. You can also import an existing CMake cache.
16+
The **C++ CMake tools for Windows** component uses the [Open Folder](https://docs.microsoft.com/en-us/cpp/build/open-folder-projects-cpp?view=vs-2019) feature to consume CMake project files (such as CMakeLists.txt) directly for the purposes of IntelliSense and browsing. Both Ninja and Visual Studio generators are supported. If you use a Visual Studio generator, a temporary project file is generated and passed to msbuild.exe, but is never loaded for IntelliSense or browsing purposes. You can also import an existing CMake cache.
1717

1818
## Installation
1919

@@ -31,7 +31,7 @@ When you choose **File > Open > Folder** to open a folder containing a CMakeList
3131

3232
- **Solution Explorer** displays the folder structure and files.
3333

34-
- Visual Studio runs CMake.exe and optionally generates the CMake cache for the default *configuration*, which is x86 Debug. The CMake command line is displayed in the **Output Window**, along with additional output from CMake.
34+
- Visual Studio runs cmake.exe and generates the CMake cache for the default *configuration*, which is x64 Debug. The CMake command line is displayed in the **Output Window**, along with additional output from CMake.
3535

3636
- In the background, Visual Studio starts to index the source files to enable IntelliSense, browsing information, refactoring, and so on. As you work, Visual Studio monitors changes in the editor and also on disk to keep its index in sync with the sources.
3737

@@ -43,9 +43,9 @@ You can also view your projects organized logically by targets. Choose **Targets
4343

4444
![CMake targets view button](media/cmake-targets-view.png)
4545

46-
Visual Studio uses a file called **CMakeSettings.json** to store environment variables or command-line options for Cmake.exe. **CMakeSettings.json** also enables you to define and store multiple CMake build configurations and conveniently switch between them in the IDE. In Visual Studio 2019, the **CMake Settings Editor** provides a convenient way to edit your settings. See [Customize CMake settings](customize-cmake-settings.md) for more information.
46+
Visual Studio uses a file called **CMakeSettings.json** to store environment variables or command-line options for cmake.exe. **CMakeSettings.json** also enables you to define and store multiple CMake build configurations and conveniently switch between them in the IDE. In Visual Studio 2019, the **CMake Settings Editor** provides a convenient way to edit your settings. See [Customize CMake settings](customize-cmake-settings.md) for more information.
4747

48-
Otherwise, use the **CMakeLists.txt** just as you would in any CMake project to specify source files, find libraries, set compiler and linker options, and specify other build system related information.
48+
Otherwise, use **CMakeLists.txt** just as you would in any CMake project to specify source files, find libraries, set compiler and linker options, and specify other build system related information.
4949

5050
If you need to pass arguments to an executable at debug time, you can use another file called **launch.vs.json**. In some scenarios, Visual Studio will automatically generate these files; you can edit them manually. You can also create the file yourself.
5151

0 commit comments

Comments
 (0)