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 at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube