Avoid discovering system infos for documentation. Adding some path is enough.
This commit is contained in:
parent
9002f73f31
commit
d4b77eba17
|
@ -304,10 +304,13 @@ int main (int argc, char *argv[])
|
|||
help = false;
|
||||
}
|
||||
|
||||
// find out which system cpack is running on, so it can setup the search
|
||||
// paths, so FIND_XXX() commands can be used in scripts
|
||||
// This part is used for cpack documentation lookup as well.
|
||||
cminst.AddCMakePaths();
|
||||
|
||||
if ( parsed && !help )
|
||||
{
|
||||
// find out which system cpack is running on, so it can setup the search
|
||||
// paths, so FIND_XXX() commands can be used in scripts
|
||||
std::string systemFile =
|
||||
globalMF->GetModulesFile("CMakeDetermineSystem.cmake");
|
||||
if (!globalMF->ReadListFile(0, systemFile.c_str()))
|
||||
|
@ -326,8 +329,6 @@ int main (int argc, char *argv[])
|
|||
return 1;
|
||||
}
|
||||
|
||||
if ( parsed && !help )
|
||||
{
|
||||
if ( cmSystemTools::FileExists(cpackConfigFile.c_str()) )
|
||||
{
|
||||
cpackConfigFile =
|
||||
|
|
Loading…
Reference in New Issue