summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-09-08 14:24:36 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-09-08 14:24:36 (GMT)
commit4da3315db365f3c80ce5202047955f0f2ec9312f (patch)
tree0446f74abab8d3a7a15996e27747d45f1a884c05 /Source/cmSystemTools.cxx
parent20b7e79d211589eed2668474966e77d00025eb37 (diff)
parent8ea7611bc3650c75c86d22a3127cb117dbcaa9be (diff)
downloadCMake-4da3315db365f3c80ce5202047955f0f2ec9312f.zip
CMake-4da3315db365f3c80ce5202047955f0f2ec9312f.tar.gz
CMake-4da3315db365f3c80ce5202047955f0f2ec9312f.tar.bz2
Merge topic 'find_program-NAMES_PER_DIR'
8ea7611b find_program: Optionally consider all names in each directory fc1990c9 cmFindProgramCommand: Re-implement search using more flexible approach fdbfc9f6 Tests: Add explicit testing for find_program 907a919b cmSystemTools: Drop unused StringEndsWith method ed4de3c9 cmFindProgramCommand: Use Names member instead of passing it bf32b95e cmFindLibraryCommand: Avoid repeating search for the same name
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx9
1 files changed, 0 insertions, 9 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 64eeed6..b1b7f47 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -1409,15 +1409,6 @@ std::string cmSystemTools::ConvertToRunCommandPath(const char* path)
#endif
}
-bool cmSystemTools::StringEndsWith(const char* str1, const char* str2)
-{
- if ( !str1 || !str2 || strlen(str1) < strlen(str2) )
- {
- return 0;
- }
- return !strncmp(str1 + (strlen(str1)-strlen(str2)), str2, strlen(str2));
-}
-
// compute the relative path from here to there
std::string cmSystemTools::RelativePath(const char* local, const char* remote)
{