From d57047de33e096eac6fc84976c733b7941c9add3 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 7 Mar 2012 14:04:33 -0500 Subject: Pre-compute object file names before VS project generation Implement cmGlobalGenerator::ComputeTargetObjects in the VS generator to pre-compute all the object file names. Use the results during generation instead of re-computing it later. --- Source/cmLocalVisualStudioGenerator.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'Source/cmLocalVisualStudioGenerator.h') diff --git a/Source/cmLocalVisualStudioGenerator.h b/Source/cmLocalVisualStudioGenerator.h index e58c757ce6..410cc9a525 100644 --- a/Source/cmLocalVisualStudioGenerator.h +++ b/Source/cmLocalVisualStudioGenerator.h @@ -56,6 +56,8 @@ public: /** Version of Visual Studio. */ VSVersion GetVersion() const { return this->Version; } + virtual std::string ComputeLongestObjectDirectory(cmTarget&) const = 0; + protected: virtual const char* ReportErrorLabel() const; virtual bool CustomCommandUseLocal() const { return false; } @@ -64,12 +66,6 @@ protected: cmsys::auto_ptr MaybeCreateImplibDir(cmTarget& target, const char* config, bool isFortran); - // Safe object file name generation. - void ComputeObjectNameRequirements(std::vector const&); - bool SourceFileCompiles(const cmSourceFile* sf); - std::set NeedObjectName; - friend class cmVisualStudio10TargetGenerator; - VSVersion Version; }; -- cgit v1.2.1