diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-09-15 18:48:41 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-05 16:43:17 (GMT) |
commit | a9588e90bbddbfe71b1d33d63d38eedaf397023f (patch) | |
tree | 6d80c4eba11e7a298aa162ddc61b404adb48e959 | |
parent | 4407eee01365d89d370d8e8b89f3ec0a65420046 (diff) | |
download | CMake-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.
-rw-r--r-- | Source/cmGlobalVisualStudio10Generator.cxx | 12 | ||||
-rw-r--r-- | Source/cmGlobalVisualStudio10Generator.h | 2 |
2 files changed, 1 insertions, 13 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) { diff --git a/Source/cmGlobalVisualStudio10Generator.h b/Source/cmGlobalVisualStudio10Generator.h index f4861dc..7600a0d 100644 --- a/Source/cmGlobalVisualStudio10Generator.h +++ b/Source/cmGlobalVisualStudio10Generator.h @@ -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); |