cmGlobalVisualStudio10Generator: Allow subclasses to reset MSBuild search

While at it, convert to inline initialization.
This commit is contained in:
Brad King
2021-10-20 11:56:42 -04:00
parent 2f7e72a341
commit 6511654164
2 changed files with 1 additions and 2 deletions

View File

@@ -139,7 +139,6 @@ cmGlobalVisualStudio10Generator::cmGlobalVisualStudio10Generator(
"ProductDir",
vc10Express, cmSystemTools::KeyWOW64_32);
this->CudaEnabled = false;
this->MSBuildCommandInitialized = false;
{
std::string envPlatformToolset;
if (cmSystemTools::GetEnv("PlatformToolset", envPlatformToolset) &&

View File

@@ -222,6 +222,7 @@ protected:
bool SystemIsWindowsPhone = false;
bool SystemIsWindowsStore = false;
bool SystemIsAndroid = false;
bool MSBuildCommandInitialized = false;
private:
class Factory;
@@ -243,7 +244,6 @@ private:
LongestSourcePath LongestSource;
std::string MSBuildCommand;
bool MSBuildCommandInitialized;
std::set<std::string> AndroidExecutableWarnings;
virtual std::string FindMSBuildCommand();
std::string FindDevEnvCommand() override;