[CMake] VS2017 + CMake integration

Marian Luparu mluparu at microsoft.com
Mon Nov 28 20:53:50 EST 2016


Once we have it ready, it will be updated in-place in VS in one of the future releases. We can't commit yet that CMake 3.7 will be in VS 2017 RTW but it will definitely be in one of the VS Updates. VS ships every 1-2 months a preview update and every 3-4 months a major update. 

In parallel, we'll also start the PR process to make sure that the changes needed by VS are available eventually in the official CMake builds too.

-----Original Message-----
From: rcdailey at gmail.com [mailto:rcdailey at gmail.com] On Behalf Of Robert Dailey
Sent: Monday, November 28, 2016 8:35 AM
To: Marian Luparu <mluparu at microsoft.com>
Cc: CMake <cmake at cmake.org>
Subject: Re: [CMake] VS2017 + CMake integration

Thanks for the feedback Marian!

If/when you rebase to CMake 3.7, how will that package be delivered to Visual Studio customers? My real concern stems from basically our minimum required version of CMake for our specific scripts. The minimum is 3.7 due to the awesome Android integration added in that version. Which means obviously I can't use the bundled version of CMake in VS currently.

On Wed, Nov 23, 2016 at 1:57 PM, Marian Luparu <mluparu at microsoft.com> wrote:
> Thanks Robert -- this is great feedback
>
> Yes, VS ships with a patched 3.6 CMake that includes both changes to find the VS 2017 installation as well as the CMake-Server functionality needed for the IDE services. We have not yet started upstreaming these changes (got totally sidetracked by getting the VS 2017 RC release out the door) but are absolutely committed to do so. As a first step, we will be rebasing our changes to the 3.7 CMake release and then start contributing these pieces.
>
> Once the changes are in PR, at a minimum, you will be able to compile your own version of CMake if you wanted to, to replace the one shipping in VS. But currently, to answer your other question, we have no capability of pointing VS to a different version of CMake. That's primarily because of the thick-coupling between VS and the custom patches we need in CMake to make the end-to-end experience work.
>
> Thanks,
> Marian Luparu
> Visual C++ PM Lead
>
> -----Original Message-----
> From: CMake [mailto:cmake-bounces at cmake.org] On Behalf Of Robert 
> Dailey
> Sent: Tuesday, November 22, 2016 10:58 AM
> To: CMake <cmake at cmake.org>
> Subject: [CMake] VS2017 + CMake integration
>
> First of all, I personally find the CMake integration in Visual Studio just absolutely amazing. Granted I am not doing any cross-compiling with Android yet, but for just building on Windows it's phenomenal.
>
> I noticed that Visual Studio 2017 RC is actually packaging its own version of CMake:
>
> E:\PROGRAM FILES (X86)\MICROSOFT VISUAL 
> STUDIO\2017\PROFESSIONAL\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\
> CMake\bin\cmake.exe
>
> Is Microsoft patching the CMake code base to support what they are doing? And if so, are those changes not upstream yet? Personally, I'd rather have the ability to tell Visual Studio to use my external version of CMake that is on PATH, rather than its own. I can understand if that isn't possible right now due to custom changes, but I'm curious to learn more, assuming Kitware has had a partnership with Microsoft for this integration with Visual Studio.
>
> Would anyone be able to provide more news here? Is there a way to make VS 2017 use my separate install of CMake? Are the Microsoft-specific patches contributed to upstream (or planned to be)?
> --
>
> Powered by 
> https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&dat
> a=02%7C01%7Cmluparu%40microsoft.com%7C00957bc2ac4847ee794f08d413098464
> %7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636154378985417863&sdata
> =Plv73v%2B4m3KwGsh6VinIPPgg1qUsCdmDlx%2F9U2urOqA%3D&reserved=0
>
> Please keep messages on-topic and check the CMake FAQ at: 
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.cm
> ake.org%2FWiki%2FCMake_FAQ&data=02%7C01%7Cmluparu%40microsoft.com%7C00
> 957bc2ac4847ee794f08d413098464%7C72f988bf86f141af91ab2d7cd011db47%7C1%
> 7C0%7C636154378985417863&sdata=qBtWeiauHkzD7ISZxtqz3Q72SaDZZwKwdY%2F1v
> oAI2U8%3D&reserved=0
>
> Kitware offers various services to support the CMake community. For more information on each offering, please visit:
>
> CMake Support: 
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcmake.
> org%2Fcmake%2Fhelp%2Fsupport.html&data=02%7C01%7Cmluparu%40microsoft.c
> om%7C00957bc2ac4847ee794f08d413098464%7C72f988bf86f141af91ab2d7cd011db
> 47%7C1%7C0%7C636154378985417863&sdata=NZgcc%2BxtLPkIWXjqcIwItZr7KXAe6c
> qbcQaLpAMMA9Q%3D&reserved=0 CMake Consulting: 
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcmake.
> org%2Fcmake%2Fhelp%2Fconsulting.html&data=02%7C01%7Cmluparu%40microsof
> t.com%7C00957bc2ac4847ee794f08d413098464%7C72f988bf86f141af91ab2d7cd01
> 1db47%7C1%7C0%7C636154378985417863&sdata=YXiCCEGtOMh3qvpKtXTgiL86czKy8
> xedQbUOoFaTsXA%3D&reserved=0 CMake Training Courses: 
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcmake.
> org%2Fcmake%2Fhelp%2Ftraining.html&data=02%7C01%7Cmluparu%40microsoft.
> com%7C00957bc2ac4847ee794f08d413098464%7C72f988bf86f141af91ab2d7cd011d
> b47%7C1%7C0%7C636154378985417863&sdata=Paz%2Ft%2Bm63qi1AavokeWDNrR69wI
> UD2Tzjuyp7gUHORk%3D&reserved=0
>
> Visit other Kitware open-source projects at 
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ki
> tware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Cmluparu%40micr
> osoft.com%7C00957bc2ac4847ee794f08d413098464%7C72f988bf86f141af91ab2d7
> cd011db47%7C1%7C0%7C636154378985417863&sdata=MkwbFPZ3eC9DrFysQTnnHA6CY
> FuNLTCt5%2FLdCrxLaXo%3D&reserved=0
>
> Follow this link to subscribe/unsubscribe:
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpublic
> .kitware.com%2Fmailman%2Flistinfo%2Fcmake&data=02%7C01%7Cmluparu%40mic
> rosoft.com%7C00957bc2ac4847ee794f08d413098464%7C72f988bf86f141af91ab2d
> 7cd011db47%7C1%7C0%7C636154378985417863&sdata=JYhOwViUGadM%2FOGbf3X8cs
> 3fwjCArFZnUz92Q1wK5VY%3D&reserved=0


More information about the CMake mailing list