

adding new files, changing compiler switches, etc.)Ĭonfigure CMake via CMakeSettings.json.
#UPGRADE CMAKE UPDATE#
When the generation step completes, the notification bar in editors is dismissed, the Startup Item dropdown will contain the updated list of CMake targets and C++ IntelliSense will incrementally update with the latest changes you made (e.g. You can track its progress in the CMake output pane of the Output Window.

If you make changes to the CMakeLists.txt files or change the active configuration, the CMake generation step will automatically rerun.
#UPGRADE CMAKE HOW TO#
If a configuration does not have the needed information for CMake to correctly create its cache, you can further customize it – how to configure CMake is explained later in the post.Īuto-update CMake cache.

You can switch between CMake configurations from the C++ Configuration dropdown in the General tab. CMake is invoked with a specific set of switches that are defined as part of a default CMake configuration that VS creates under the name “Visual Studio 15 x86”.ĬMake configuration switch. It will also run CMake.exe to collect more information about your CMake project (CMake cache will be generated in the process). In the background, VS will start indexing the C++ sources in your folder. As soon as you open a folder containing a CMake project, Solution Explorer will display the files in that folder and you can open any one of them in the editor.
