summaryrefslogtreecommitdiffstats
path: root/Tests/CompatibleInterface/main.cpp
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-10-26 14:28:30 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-10-26 14:28:30 (GMT)
commit4025013dd78abeaef772eee1fc532ce275ae4216 (patch)
tree313d9ed0302f457507c375a1ea32f23db6d47ff5 /Tests/CompatibleInterface/main.cpp
parent5f789db847a86cbdfb94fcf1abd4d561a6942d65 (diff)
parentff6c401309761f0c0061f1084f2e3150038962a5 (diff)
downloadCMake-4025013dd78abeaef772eee1fc532ce275ae4216.zip
CMake-4025013dd78abeaef772eee1fc532ce275ae4216.tar.gz
CMake-4025013dd78abeaef772eee1fc532ce275ae4216.tar.bz2
Merge topic 'compatible-interface-numbers'
ff6c401 cmTarget: Add interface for compatible numeric properties e4e20c1 cmTarget: Add enumeration for consistency to expect from properties. 9877769 cmTarget: Assign consistent content back to the property being evaluated. 816b4a8 cmTarget: Make consistentProperty return consistent content. 030800a cmTarget: Add a template to create correct implied content.
Diffstat (limited to 'Tests/CompatibleInterface/main.cpp')
-rw-r--r--Tests/CompatibleInterface/main.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/Tests/CompatibleInterface/main.cpp b/Tests/CompatibleInterface/main.cpp
index f5e6e38..fa299e9 100644
--- a/Tests/CompatibleInterface/main.cpp
+++ b/Tests/CompatibleInterface/main.cpp
@@ -23,6 +23,19 @@
#error Expected STRING_PROP3
#endif
+template<bool test>
+struct CMakeStaticAssert;
+
+template<>
+struct CMakeStaticAssert<true> {};
+
+enum {
+ NumericMaxTest1 = sizeof(CMakeStaticAssert<NUMBER_MAX_PROP1 == 100>),
+ NumericMaxTest2 = sizeof(CMakeStaticAssert<NUMBER_MAX_PROP2 == 250>),
+ NumericMinTest1 = sizeof(CMakeStaticAssert<NUMBER_MIN_PROP1 == 50>),
+ NumericMinTest2 = sizeof(CMakeStaticAssert<NUMBER_MIN_PROP2 == 200>)
+};
+
#include "iface2.h"
int main(int argc, char **argv)