{"id":14715,"date":"2017-04-17T19:12:08","date_gmt":"2017-04-18T03:12:08","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/vcblog\/?p=14715"},"modified":"2019-02-18T17:48:33","modified_gmt":"2019-02-18T17:48:33","slug":"cmake-support-in-visual-studio-whats-new-in-2017-15-2-update","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cppblog\/cmake-support-in-visual-studio-whats-new-in-2017-15-2-update\/","title":{"rendered":"CMake support in Visual Studio \u2013 what\u2019s new in 2017 15.2 update"},"content":{"rendered":"<p>Today\u2019s preview release of <a href=\"https:\/\/www.visualstudio.com\/vs\/preview\/\">Visual Studio 2017 15.2 update<\/a> comes with several improvements and new features in <a href=\"https:\/\/aka.ms\/cmake\">CMake Tools for Visual Studio<\/a> \u2013 <em>recently updated to cover 15.2<\/em>.\u00a0 We have upgraded the included version of CMake to 3.7.2 and enhanced the discoverability of features in the CMake menu.\u00a0 This update also includes bugfixes for community reported issues.<\/p>\n<p>Please download the preview and try out the latest CMake features.\u00a0 If you are just getting started with CMake, follow the link to <a href=\"https:\/\/aka.ms\/cmake\">learn more about CMake support in Visual Studio<\/a>.\u00a0 We are looking forward to your feedback.<\/p>\n<h3>CMake Tools Upgraded to CMake 3.7.2<\/h3>\n<p>We want to make Visual Studio the best way to work with CMake projects on Windows.\u00a0 To enhance compatibility with your projects, we have updated the internal version of CMake that the Visual Studio CMake tools use from version 3.6 to version 3.7.2.<\/p>\n<p>CMake 3.7.2 brings many new features and improvements, which you can read about in <a href=\"https:\/\/cmake.org\/cmake\/help\/v3.7\/release\/3.7.html\">CMake\u2019s 3.7 release notes<\/a>.\u00a0 On the IDE side, the update to CMake 3.7.2 gives Visual Studio more insight into your projects\u2019 structure and allows Visual Studio to provide more accurate IntelliSense and builds.<\/p>\n<h3>A More Intuitive CMake Menu<\/h3>\n<p>The most visible change that many of you will notice in the update is the revamped CMake menu:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/9\/2019\/02\/15.2-CMake-Meu.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/9\/2019\/02\/15.2-CMake-Meu.png\" alt=\"Visual Studio 2017 15.2 Update CMake Menu\" width=\"274\" height=\"244\" class=\"aligncenter wp-image-14725 size-full\" \/><\/a><\/p>\n<p>The revamped menu brings all the common operations to the forefront.\u00a0 At the top of the menu Build, Rebuild, Clean, and (if applicable) Test All apply globally to every CMake project detected in an open folder.\u00a0 The menu items below those allow finer control, such as building individual targets and managing the CMake cache.\u00a0 This menu should now be a one stop shop for all things CMake instead of having operations and entry points scattered around the IDE.<\/p>\n<h3>Bugfixes and Improvements<\/h3>\n<p>The 15.2 update includes many improvements and addresses several bugs, most of which were reported by the community.\u00a0 The following issues have been fixed in the latest release:<\/p>\n<ul>\n<li>Visual Studio fails to launch CMake targets because the output location cannot be found for some CMakeLists.\n<em>Developer Community: <\/em><a href=\"https:\/\/developercommunity.visualstudio.com\/content\/problem\/24375\/cant-debug-cmake.html\">24375<\/a> <a href=\"https:\/\/developercommunity.visualstudio.com\/content\/problem\/24359\/cmake-open-folder-project-with-cmakesettingsjsonbu.html\">24359<\/a><\/li>\n<li>CMake tools freeze or malfunction when the build output is a child of the opened folder.\n<em>Developer Community: <\/em><a href=\"https:\/\/developercommunity.visualstudio.com\/content\/problem\/12830\/cmakeopen-folder-useless-error-message-after-addin.html\">12830<\/a> <a href=\"https:\/\/developercommunity.visualstudio.com\/content\/problem\/25412\/open-folder-with-cmake-option-generates-cmake-cach.html\">25412<\/a><\/li>\n<li>Running tests triggers installation stage.\n<em>Developer Community: <\/em><a href=\"https:\/\/developercommunity.visualstudio.com\/content\/problem\/19007\/cmake-run-all-tests-cmakeliststxt-not-only-builds.html\">19007<\/a><\/li>\n<li>Tests attempt to run even when build fails.\n<em>Developer Community: <\/em><a href=\"https:\/\/developercommunity.visualstudio.com\/content\/problem\/17949\/ctest-still-runs-after-compilation-failure-using-c.html\">17949<\/a><\/li>\n<li>No way to pass arguments to tests via CMakeSettings.json.\n<em>Developer Community: <\/em><a href=\"https:\/\/developercommunity.visualstudio.com\/content\/problem\/17968\/no-way-to-specify-options-to-be-given-to-ctest.html\">17968<\/a><\/li>\n<li>CMake processing appears to be stalled and cannot be canceled for large or unsupported CMakeLists.\n<em>Developer Community: <\/em><a href=\"https:\/\/developercommunity.visualstudio.com\/content\/problem\/9879\/cmake-timeout.html\">9879<\/a> <a href=\"https:\/\/developercommunity.visualstudio.com\/content\/problem\/13799\/failed-cmake-cache-generation-is-stuck-somewhere-d.html\">13799<\/a> <a href=\"https:\/\/developercommunity.visualstudio.com\/content\/problem\/15384\/cmake-build-option-not-available-right-after-cmake.html\">15384<\/a> <a href=\"https:\/\/developercommunity.visualstudio.com\/content\/problem\/24404\/cmake-stuck-hangs-broken-unusable-after-writing-bu.html\">24404<\/a> <a href=\"https:\/\/developercommunity.visualstudio.com\/content\/problem\/31401\/cmake-project-doesnt-expand-envlocalappdata-correc.html\">31401<\/a><\/li>\n<li>Visual Studio does not automatically restart cache generation after a failure upon re-opening a folder.\n<em>Developer Community: <\/em><a href=\"https:\/\/developercommunity.visualstudio.com\/content\/problem\/13185\/c-cmake-project-doesnt-auto-reconfigure.html\">13185<\/a><\/li>\n<li>Visual Studio does not support CMake workspaces with long paths.\n<em>Developer Community: <\/em><a href=\"https:\/\/developercommunity.visualstudio.com\/content\/problem\/9222\/cmake-sometimes-fails-to-create-cache-because-of-t.html\">9222<\/a><\/li>\n<li>CMake cache generation fails if standard tools are not in toolbar.\n<em>Developer Community: <\/em><a href=\"https:\/\/developercommunity.visualstudio.com\/content\/problem\/37195\/if-standard-not-in-toolbar-cmake-cannot-generate.html\">37195<\/a><\/li>\n<li>CMake Tools for Visual Studio do not support \u201cRebuild All\u201d\n<em>Developer Community: <\/em><a href=\"https:\/\/developercommunity.visualstudio.com\/content\/problem\/22318\/cmake-up-to-date-issue.html\">22318<\/a><\/li>\n<li>CMake output pane shows incomplete status during cache generation and IntelliSense configuration.<\/li>\n<\/ul>\n<h3>Send Us Feedback<\/h3>\n<p>To try out the latest and greatest CMake features and give us some early feedback, please download and install the latest <a href=\"https:\/\/www.visualstudio.com\/vs\/preview\/\">Visual Studio 2017 Preview<\/a>.\u00a0 As always, we welcome your feedback.\u00a0 Feel free to send any comments through e-mail at\u00a0<a href=\"mailto:visualcpp@microsoft.com\">visualcpp@microsoft.com<\/a>, through\u00a0<a href=\"https:\/\/twitter.com\/visualc\">Twitter @visualc<\/a>, or Facebook at\u00a0<a href=\"https:\/\/www.facebook.com\/Microsoft-Visual-Cpp-222043184527264\/\">Microsoft Visual Cpp<\/a>.<\/p>\n<p>If you encounter other problems with Visual Studio 2017 please let us know via <a href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/ide\/how-to-report-a-problem-with-visual-studio-2017\">Report a Problem<\/a>, which is available in both the installer and the IDE itself. \u00a0For suggestions, let us know through\u00a0<a href=\"https:\/\/visualstudio.uservoice.com\/forums\/121579-visual-studio-2015\/category\/30937-languages-c\">UserVoice<\/a>. We look forward to your feedback!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today\u2019s preview release of Visual Studio 2017 15.2 update comes with several improvements and new features in CMake Tools for Visual Studio \u2013 recently updated to cover 15.2.\u00a0 We have upgraded the included version of CMake to 3.7.2 and enhanced the discoverability of features in the CMake menu.\u00a0 This update also includes bugfixes for community [&hellip;]<\/p>\n","protected":false},"author":326,"featured_media":35994,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[266],"tags":[8,140,252,233,308,6,309,268,185],"class_list":["post-14715","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cmake","tag-announcement","tag-c","tag-cmake","tag-cross-platform","tag-existing-code","tag-ide","tag-import","tag-openfolder","tag-visual-studio"],"acf":[],"blog_post_summary":"<p>Today\u2019s preview release of Visual Studio 2017 15.2 update comes with several improvements and new features in CMake Tools for Visual Studio \u2013 recently updated to cover 15.2.\u00a0 We have upgraded the included version of CMake to 3.7.2 and enhanced the discoverability of features in the CMake menu.\u00a0 This update also includes bugfixes for community [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/14715","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/users\/326"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/comments?post=14715"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/14715\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media\/35994"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media?parent=14715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/categories?post=14715"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/tags?post=14715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}