mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-10 23:43:58 +03:00
VisualStudio10: Initialize the LongestSource at generate time.
There is no need to initialize it at compute time.
This commit is contained in:
1 parent
4407eee013
commit
a9588e90bb
2 files changed
+1
-13
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user