![]() ![]() You can find the full lists of enhancements to CMake 3.11 in the CMake 3.11 release notes. To ensure that your projects can take advantage of the latest and greatest CMake features we have upgraded the version of CMake that ships with Visual Studio from 3.10 to 3.11. Just add the “codeAnalysisRuleset” tag to your configuration with the name or path to a rule set file. Or, if you are using the Targets View you can simply right click on any target and select “Run Code Analysis:”Īny analysis errors or warnings that are detected will appear in the Output Window:īy default CMake projects use the “Microsoft Native Recommended Rules” rule set, but you can change this by modifying your CMakeSettings.json file. To run code analysis on a CMake target you can select “Run Code Analysis” from the CMake menu: Options to run code analysis for single files or your entire project are coming soon. Currently, you can run code analysis at the target level. In the latest preview, you can now run Visual Studio’s comprehensive code analysis tools on CMake projects. If you are new to CMake in Visual Studio, check out how to get started. As always, we would love to hear your feedback too. ![]() Please download the preview and check out the latest CMake features such as the Targets View, single file compilation, and more control over when projects are configured. ![]() We are also excited to announce that CMake projects now support the IDE’s code analysis features that previously required a VCXProj to take advantage of. We keep the version of CMake that ships with Visual Studio as fresh as possible, so we have updated it to version 3.11. Visual Studio 2017 15.7 Preview 4 is now available and we have added a few more CMake features in addition to the Targets View and single file compilation added in Preview 3. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |