[cmake-developers] msbuild VisualStudioEdition value (was: Fix for Windows Store warning APPX1901...)
Robert Goulet
Robert.Goulet at autodesk.com
Fri Feb 6 10:25:30 EST 2015
Gilles? Any advices about this one?
Thanks!
-----Original Message-----
From: Brad King [mailto:brad.king at kitware.com]
Sent: Tuesday, February 3, 2015 3:12 PM
To: Robert Goulet; Gilles Khouzam
Cc: cmake-developers at cmake.org
Subject: Re: msbuild VisualStudioEdition value (was: Fix for Windows Store warning APPX1901...)
On 01/30/2015 10:35 AM, Robert Goulet wrote:
> makeCommand.push_back(std::string("/p:VisualStudioVersion=")+
> this->GetIDEVersion());
> +
> + // Normally this is only needed for Windows Store/Phone apps when building from command-line.
> + // Fixes warning APPX2102: : File 'VisualStudioEdition' is not found or is not an executable file.
> + makeCommand.push_back(std::string("/p:VisualStudioEdition=\"")+
> + this->GetName()+
> + std::string("\""));
Something like this may work, but the generator name will not always be a valid value for VisualStudioEdition. Somehow we have to look up a correct value based on the current generator and what is installed on the system. Gilles, might you be able to help with this?
Thanks,
-Brad
More information about the cmake-developers
mailing list