diff options
author | Brad King <brad.king@kitware.com> | 2008-06-08 15:41:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-06-08 15:41:08 (GMT) |
commit | abb1c0e25e950891caf57d13a55583175729af5b (patch) | |
tree | 1801f2443e658e6c72284d41b504dba9c471156b /Source/cmFindBase.cxx | |
parent | 9e44be371f573434ae04816ee517acd5729586c7 (diff) | |
download | CMake-abb1c0e25e950891caf57d13a55583175729af5b.zip CMake-abb1c0e25e950891caf57d13a55583175729af5b.tar.gz CMake-abb1c0e25e950891caf57d13a55583175729af5b.tar.bz2 |
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.
Diffstat (limited to 'Source/cmFindBase.cxx')
-rw-r--r-- | Source/cmFindBase.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmFindBase.cxx b/Source/cmFindBase.cxx index f5ac83d..68e091b 100644 --- a/Source/cmFindBase.cxx +++ b/Source/cmFindBase.cxx @@ -204,6 +204,7 @@ bool cmFindBase::ParseArguments(std::vector<std::string> const& argsIn) doingPaths = false; doingPathSuf = false; doingNames = false; + newStyle = true; } else { |