mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 20:19:53 +00:00
VisualStudio10: Initialize the LongestSource at generate time.
There is no need to initialize it at compute time.
This commit is contained in:
parent
4407eee013
commit
a9588e90bb
@ -325,19 +325,9 @@ cmLocalGenerator* cmGlobalVisualStudio10Generator::CreateLocalGenerator(
|
||||
return new cmLocalVisualStudio10Generator(this, mf);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool cmGlobalVisualStudio10Generator::Compute()
|
||||
{
|
||||
if (!cmGlobalVisualStudio8Generator::Compute())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
this->LongestSource = LongestSourcePath();
|
||||
return true;
|
||||
}
|
||||
|
||||
void cmGlobalVisualStudio10Generator::Generate()
|
||||
{
|
||||
this->LongestSource = LongestSourcePath();
|
||||
this->cmGlobalVisualStudio8Generator::Generate();
|
||||
if(this->LongestSource.Length > 0)
|
||||
{
|
||||
|
@ -45,8 +45,6 @@ public:
|
||||
std::vector<std::string> const& makeOptions = std::vector<std::string>()
|
||||
);
|
||||
|
||||
virtual bool Compute();
|
||||
|
||||
///! create the correct local generator
|
||||
virtual cmLocalGenerator *CreateLocalGenerator(cmMakefile* mf);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user