Merge topic 'CPack-fixRegressionCPackWithNoArgs'

926d634 CPack fix regression between 2.8.7 and 2.8.8 when running cpack with no arg.
This commit is contained in:
David Cole 2012-07-09 14:23:18 -04:00 committed by CMake Topic Stage
commit 098e8de461
1 changed files with 6 additions and 2 deletions

View File

@ -294,8 +294,12 @@ int main (int argc, char *argv[])
cmDocumentation doc;
doc.addCPackStandardDocSections();
/* Were we invoked to display doc or to do some work ? */
if(doc.CheckOptions(argc, argv,"-G") || nocwd)
/* Were we invoked to display doc or to do some work ?
* Unlike cmake launching cpack with zero argument
* should launch cpack using "cpackConfigFile" if it exists
* in the current directory.
*/
if((doc.CheckOptions(argc, argv,"-G") || nocwd) && !(argc==1))
{
help = true;
}