diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-10-30 00:49:50 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-10-30 00:49:50 (GMT) |
commit | d21532cd02e18b1677983849a9f5d7454e24bb74 (patch) | |
tree | d0b5b80e42b4c0915787bbbcd9ae6f6065f82353 /Source/cmSystemTools.cxx | |
parent | 3b7c4b2a7b784a767bcf31774014d06b97c98d4f (diff) | |
download | CMake-d21532cd02e18b1677983849a9f5d7454e24bb74.zip CMake-d21532cd02e18b1677983849a9f5d7454e24bb74.tar.gz CMake-d21532cd02e18b1677983849a9f5d7454e24bb74.tar.bz2 |
ENH: Ok, no more argument needed for script mode
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 9574624..1e2de6e 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1047,3 +1047,11 @@ std::string cmSystemTools::ConvertToOutputPath(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)); +} |