ENH: make sure NAMES tag is not required for name argument, fixes msys generator
This commit is contained in:
parent
06846c4c07
commit
4cdfc76c49
@ -35,10 +35,10 @@ cmFindBase::cmFindBase()
|
|||||||
" FIND_XXX(<VAR> name1 path1 path2 ...)\n"
|
" FIND_XXX(<VAR> name1 path1 path2 ...)\n"
|
||||||
"This is the short-hand signature for the command that "
|
"This is the short-hand signature for the command that "
|
||||||
"is sufficient in many cases. It is the same "
|
"is sufficient in many cases. It is the same "
|
||||||
"as FIND_XXX(<VAR> NAMES name1 PATHS path2 path2 ...)\n"
|
"as FIND_XXX(<VAR> name1 PATHS path2 path2 ...)\n"
|
||||||
" FIND_XXX(\n"
|
" FIND_XXX(\n"
|
||||||
" <VAR> \n"
|
" <VAR> \n"
|
||||||
" NAMES name1 [name2 ...]\n"
|
" name | NAMES name1 [name2 ...]\n"
|
||||||
" PATHS path1 [path2 ...]\n"
|
" PATHS path1 [path2 ...]\n"
|
||||||
" [PATH_SUFFIXES suffix1 [suffix2 ...]]\n"
|
" [PATH_SUFFIXES suffix1 [suffix2 ...]]\n"
|
||||||
" [DOC \"cache documentation string\"]\n"
|
" [DOC \"cache documentation string\"]\n"
|
||||||
@ -134,7 +134,7 @@ bool cmFindBase::ParseArguments(std::vector<std::string> const& argsIn)
|
|||||||
this->AlreadyInCache = false;
|
this->AlreadyInCache = false;
|
||||||
std::vector<std::string> userPaths;
|
std::vector<std::string> userPaths;
|
||||||
std::string doc;
|
std::string doc;
|
||||||
bool doingNames = false;
|
bool doingNames = true; // assume it starts with a name
|
||||||
bool doingPaths = false;
|
bool doingPaths = false;
|
||||||
bool doingPathSuf = false;
|
bool doingPathSuf = false;
|
||||||
bool newStyle = false;
|
bool newStyle = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user