STYLE: one ifdef block less, the documentation object can be created a bit later

Alex
This commit is contained in:
Alexander Neundorf 2008-08-12 07:01:44 -04:00
parent 6d857edb45
commit ec5f5b093f
1 changed files with 1 additions and 3 deletions

View File

@ -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.