[cmake-developers] msbuild VisualStudioEdition value (was: Fix for Windows Store warning APPX1901...)

Brad King brad.king at kitware.com
Tue Feb 3 15:11:38 EST 2015


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