Commit ec5f5b09 authored by Alexander Neundorf's avatar Alexander Neundorf
Browse files

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

Alex
parent 6d857edb
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment