summaryrefslogtreecommitdiffstats
path: root/Source/cmStandardIncludes.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-11-25 15:23:11 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-11-25 15:23:11 (GMT)
commit5ee9e6bc11a01c7450ffeb14d86f0fe0cef540d6 (patch)
tree2b58b308a696450f88b9916da192eb7e74dc0442 /Source/cmStandardIncludes.h
parent0bfcb450e6cab8d9c2c079e10bf0acea62ffadbe (diff)
downloadCMake-5ee9e6bc11a01c7450ffeb14d86f0fe0cef540d6.zip
CMake-5ee9e6bc11a01c7450ffeb14d86f0fe0cef540d6.tar.gz
CMake-5ee9e6bc11a01c7450ffeb14d86f0fe0cef540d6.tar.bz2
cmTarget: Add whitelist of properties on INTERFACE_LIBRARY.
Diffstat (limited to 'Source/cmStandardIncludes.h')
-rw-r--r--Source/cmStandardIncludes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h
index 1ccec68..7369fe6 100644
--- a/Source/cmStandardIncludes.h
+++ b/Source/cmStandardIncludes.h
@@ -428,6 +428,12 @@ struct cmStrCmp {
return strcmp(input, m_test) == 0;
}
+ // For use with binary_search
+ bool operator()(const char *str1, const char *str2)
+ {
+ return strcmp(str1, str2) < 0;
+ }
+
private:
const char *m_test;
};