summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-06-08 15:41:08 (GMT)
committerBrad King <brad.king@kitware.com>2008-06-08 15:41:08 (GMT)
commitabb1c0e25e950891caf57d13a55583175729af5b (patch)
tree1801f2443e658e6c72284d41b504dba9c471156b /Source
parent9e44be371f573434ae04816ee517acd5729586c7 (diff)
downloadCMake-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')
-rw-r--r--Source/cmFindBase.cxx1
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
{