BUG: Fix find_* command calls with no PATHS but new-style options.

- In cmFindBase when CheckCommonArgument returns true, set newStyle
  - Otherwise if there are no PATHS then the ancient-style compatibility
    mode is enabled and the common argument is treated as a path.
This commit is contained in:
Brad King 2008-06-08 11:41:08 -04:00
parent 9e44be371f
commit abb1c0e25e
1 changed files with 1 additions and 0 deletions

View File

@ -204,6 +204,7 @@ bool cmFindBase::ParseArguments(std::vector<std::string> const& argsIn)
doingPaths = false;
doingPathSuf = false;
doingNames = false;
newStyle = true;
}
else
{