News

CMake Gets Boost in Latest Visual Studio 2017 Preview

The new Visual Studio 2017 15.4 Preview 2 includes a boost to the CMake software build management tool, which now lets developers target Linux directly.

The preview upgrades CMake to version 3.9, featuring a number of enhancements concerning languages, generators, commands and more.

The Visual Studio C++ team highlighted several of the new features in a blog post. Of special importance to C++ for Linux developers is the new ability to target Linux directly from CMake projects.

"This feature allows you to open your Linux projects without modification, edit on Windows with full IntelliSense, and build and debug on a remote Linux target," the C++ team said. "Additionally, Visual Studio handles the connection to the remote target for you, so you don’t need to worry about setting up SSH tunnels. This should make cross-platform development a breeze, because you can switch between targeting Windows and Linux by switching configurations in the dropdown."

Targeting Linux Directly
[Click on image for larger view.] Targeting Linux Directly (source: Microsoft).

More information on that feature is available in an earlier blog post, titled "Visual C++ for Linux Development with CMake."

The C++ team also highlighted better support for folders containing multiple independent CMake lists.

"When you open a folder with independent projects, all targets in your CMake projects should be detected," Microsoft said. "This feature does have some limitations in the preview. For instance, if there is a CMakeLists in the root folder, independent CMakeLists in subfolders may not be properly detected. Please let us know if this will negatively impact your projects. Until then, you can work around this limitation by opening the subfolder directly."

The post also details a number of bug fixes and minor improvements.

Developers can provide feedback about the Visual Studio previews at the Report a Problem site or the UserVoice site, which collects suggestions and feature requests.

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus

Featured

  • Full Stack Hands-On Development with .NET

    In the fast-paced realm of modern software development, proficiency across a full stack of technologies is not just beneficial, it's essential. Microsoft has an entire stack of open source development components in its .NET platform (formerly known as .NET Core) that can be used to build an end-to-end set of applications.

  • .NET-Centric Uno Platform Debuts 'Single Project' for 9 Targets

    "We've reduced the complexity of project files and eliminated the need for explicit NuGet package references, separate project libraries, or 'shared' projects."

  • Creating Reactive Applications in .NET

    In modern applications, data is being retrieved in asynchronous, real-time streams, as traditional pull requests where the clients asks for data from the server are becoming a thing of the past.

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

Subscribe on YouTube