summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2008-08-12 11:01:44 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2008-08-12 11:01:44 (GMT)
commitec5f5b093fd5c1d7354a722e3d06f29fbabae7c4 (patch)
treed78c3863be425050e79f183116b52b23f0c15888
parent6d857edb4555627916ec097cd555c9aa8a8e0cd7 (diff)
downloadCMake-ec5f5b093fd5c1d7354a722e3d06f29fbabae7c4.zip
CMake-ec5f5b093fd5c1d7354a722e3d06f29fbabae7c4.tar.gz
CMake-ec5f5b093fd5c1d7354a722e3d06f29fbabae7c4.tar.bz2
STYLE: one ifdef block less, the documentation object can be created a bit later
Alex
-rw-r--r--Source/cmakemain.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index 601c060..233e87a 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -303,9 +303,6 @@ int main(int ac, char** av)
int do_cmake(int ac, char** av)
{
-#ifdef CMAKE_BUILD_WITH_CMAKE
- cmDocumentation doc;
-#endif
int nocwd = 0;
if ( cmSystemTools::GetCurrentWorkingDirectory().size() == 0 )
@@ -316,6 +313,7 @@ int do_cmake(int ac, char** av)
}
#ifdef CMAKE_BUILD_WITH_CMAKE
+ cmDocumentation doc;
if(doc.CheckOptions(ac, av) || nocwd)
{
// Construct and print requested documentation.