Showing category results for CMake

Jan 21, 2021
Post comments count0
Post likes count0

Windows ARM64 support for CMake projects in Visual Studio

Erika Sweet

In Visual Studio 2019 version 16.9 Preview 3 we added support for deploying CMake projects to a remote Windows machine and debugging them with the Visual Studio remote tools. CMake developers targeting ARM64 Windows can now cross-compile (with cl or clang-cl), deploy, and debug their projects directly from Visual Studio. You can download and instal...

AnnouncementC++CMake
Jan 14, 2021
Post comments count2
Post likes count0

C++ with Visual Studio and WSL2

Erika Sweet

Our team released native support for C++ with the Windows Subsystem for Linux (WSL) in Visual Studio in 2019. “Native support” means that all commands are executed locally instead of over a SSH connection. Since then, WSL2 has been announced and we’ve received questions about our support for WSL2 in Visual Studio. The purpose of this blog post is t...

CMakeLinuxSurvey
Jun 2, 2020
Post comments count7
Post likes count0

Linux development with Visual Studio: first-class support for gdbserver, improved build times with Ninja, and updates to the Connection Manager

Erika Sweet

With Visual Studio 2019 you can build and debug C++ projects on a remote Linux system or the Windows Subsystem for Linux (WSL). You can get started with Linux development in Visual Studio using MSBuild-based Linux projects or our native support for CMake. CMake lets you use the same source code and build scripts to target multiple platforms and is ...

C++CMakeLinux
Apr 3, 2020
Post comments count3
Post likes count0

New templates for debugging CMake projects on remote systems and WSL in Visual Studio 2019

Erika Sweet

We heard your feedback that it can be difficult to configure debugging sessions on remote Linux systems or the Windows Subsystem for Linux (WSL). In Visual Studio 2019 version 16.6 Preview 2 we introduced a new debugging template to simplify debugging with gdb. The new cppgdb template We heard your feedback that the old debug ...

AnnouncementC++CMake
Feb 7, 2020
Post comments count0
Post likes count2

Visual Studio Code CMake Tools Extension: Multi-root workspaces and file-based API

Erika Sweet

The February 2020 update of the Visual Studio Code CMake Tools extension is now available. This release includes two of the extension’s top feature requests: file-based API support and multi-root workspaces. For a full list of this release’s improvements check out the release notes on GitHub. Multi-root workspace support The latest release of the...

C++CMakeVisual Studio Code
Feb 6, 2020
Post comments count9
Post likes count1

Easily Add, Remove, and Rename Files and Targets in CMake Projects

Will Buik

It’s easier than ever to work with CMake projects in Visual Studio 2019 16.5 Preview 2. Now you can add, remove, and rename source files and targets in your CMake projects from the IDE without manually editing your CMake scripts. When you add or remove files with the Solution Explorer, Visual Studio will automatically edit your CMake project. You c...

CMakeC++
Feb 6, 2020
Post comments count1
Post likes count1

Code Navigation for CMake Scripts

Will Buik

Visual Studio 2019 16.5 Preview 2 makes it easy to make sense of complex CMake projects. Code navigation features such as Go To Definition and Find All References are now supported for variables, functions, and targets in CMake script files. This can be a huge timesaver because CMake projects with more than a handful of source files are often organ...

CMakeC++
Jan 24, 2020
Post comments count2
Post likes count1

CMake, Linux targeting, and IntelliSense improvements in Visual Studio 2019 version 16.5 Preview 2

Erika Sweet

Visual Studio’s native support for CMake allows you to target both Windows and Linux from the comfort of a single IDE. Visual Studio 2019 version 16.5 Preview 2 introduces several new features specific to cross-platform development, including: File copy optimizations for CMake projects targeting a remote Linux syste...

C++CMakeNew Feature
Jan 10, 2020
Post comments count1
Post likes count0

Improvements to Accuracy and Performance of Linux IntelliSense

Erika Sweet

This blog post was written by Paul Maybee, a Principal Software Engineer on the C++ Cross-Platform Team.  Accurate C++ IntelliSense requires access to the C++ headers that are referenced by C++ source files. For Linux scenarios the headers referenced by a Linux MSBuild or CMake project are copied to Windows by Visual Studio from the Linux device...

C++CMakeNew Feature
Dec 18, 2019
Post comments count1
Post likes count0

Debugging Linux CMake Projects with gdbserver

Erika Sweet

Update 2/20/20: We have addressed a bug which allows you to debug simple CMake projects using one level of CMakeLists.txt files with gdbserver in Visual Studio 2019 version 16.5 Preview 3. The example launch configuration has been updated below. Gdbserver is a program that allows you to remotely debug applications running on Linux. It is esp...

C++CMakeNew Feature