summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-09-03 12:26:46 (GMT)
committerBrad King <brad.king@kitware.com>2009-09-03 12:26:46 (GMT)
commit1db5c90644c2567af5d10b66d7be6f39441ce8ff (patch)
treee883e707414fd4e433600ce2df6ef5bedadb9eb7 /Source/cmLocalGenerator.cxx
parenta6890a1673aec8e3bf6afa7daa8d738ff4d32868 (diff)
downloadCMake-1db5c90644c2567af5d10b66d7be6f39441ce8ff.zip
CMake-1db5c90644c2567af5d10b66d7be6f39441ce8ff.tar.gz
CMake-1db5c90644c2567af5d10b66d7be6f39441ce8ff.tar.bz2
Factor cmLocalGenerator::Configure object max path
Much of the code in this method was dedicated to computing ObjectMaxPath after configuring the directory. We move this last step into its own ComputeObjectMaxPath method for better organization.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index c051e0b..2546458 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -121,8 +121,15 @@ void cmLocalGenerator::Configure()
// relative paths.
this->UseRelativePaths = this->Makefile->IsOn("CMAKE_USE_RELATIVE_PATHS");
+ this->ComputeObjectMaxPath();
+
+ this->Configured = true;
+}
+
+//----------------------------------------------------------------------------
+void cmLocalGenerator::ComputeObjectMaxPath()
+{
// Choose a maximum object file name length.
- {
#if defined(_WIN32) || defined(__CYGWIN__)
this->ObjectPathMax = 250;
#else
@@ -157,9 +164,6 @@ void cmLocalGenerator::Configure()
}
}
this->ObjectMaxPathViolations.clear();
- }
-
- this->Configured = true;
}
void cmLocalGenerator::SetupPathConversions()