summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-11-20 01:12:00 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-11-21 19:53:15 (GMT)
commit4fe963f656c48b1f2fd0b4a2f427bb376f619c37 (patch)
treef04d63d59976dfa868873de1646664f57f59e2e2 /Source/cmakemain.cxx
parent7d4b2b2ef36c73c36eefd464fbb17bf34ebdb5fe (diff)
downloadCMake-4fe963f656c48b1f2fd0b4a2f427bb376f619c37.zip
CMake-4fe963f656c48b1f2fd0b4a2f427bb376f619c37.tar.gz
CMake-4fe963f656c48b1f2fd0b4a2f427bb376f619c37.tar.bz2
Use new cmHasLiteralPrefix function
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r--Source/cmakemain.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index 6ef0579..882b072 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -273,7 +273,7 @@ int do_cmake(int ac, char** av)
list_all_cached = true;
list_help = true;
}
- else if (strncmp(av[i], "-P", strlen("-P")) == 0)
+ else if (cmHasLiteralPrefix(av[i], "-P"))
{
if ( i == ac -1 )
{
@@ -287,8 +287,7 @@ int do_cmake(int ac, char** av)
args.push_back(av[i]);
}
}
- else if (strncmp(av[i], "--find-package",
- strlen("--find-package")) == 0)
+ else if (cmHasLiteralPrefix(av[i], "--find-package"))
{
workingMode = cmake::FIND_PACKAGE_MODE;
args.push_back(av[i]);