summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio10Generator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-09-15 18:48:41 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-05 16:43:17 (GMT)
commita9588e90bbddbfe71b1d33d63d38eedaf397023f (patch)
tree6d80c4eba11e7a298aa162ddc61b404adb48e959 /Source/cmGlobalVisualStudio10Generator.cxx
parent4407eee01365d89d370d8e8b89f3ec0a65420046 (diff)
downloadCMake-a9588e90bbddbfe71b1d33d63d38eedaf397023f.zip
CMake-a9588e90bbddbfe71b1d33d63d38eedaf397023f.tar.gz
CMake-a9588e90bbddbfe71b1d33d63d38eedaf397023f.tar.bz2
VisualStudio10: Initialize the LongestSource at generate time.
There is no need to initialize it at compute time.
Diffstat (limited to 'Source/cmGlobalVisualStudio10Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio10Generator.cxx12
1 files changed, 1 insertions, 11 deletions
diff --git a/Source/cmGlobalVisualStudio10Generator.cxx b/Source/cmGlobalVisualStudio10Generator.cxx
index 59e8f8c..161b532 100644
--- a/Source/cmGlobalVisualStudio10Generator.cxx
+++ b/Source/cmGlobalVisualStudio10Generator.cxx
@@ -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)
{