diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-12-26 15:04:58 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-01-06 16:25:09 (GMT) |
commit | 2d6638008c2aeba6015d45160e52d78d92daf57d (patch) | |
tree | 324cfe8366dec59e9d0629200f264c7997a89f95 /Tests/CompatibleInterface/main.cpp | |
parent | b225dbbd0235b545383105e0571f84a1bf6b1be0 (diff) | |
download | CMake-2d6638008c2aeba6015d45160e52d78d92daf57d.zip CMake-2d6638008c2aeba6015d45160e52d78d92daf57d.tar.gz CMake-2d6638008c2aeba6015d45160e52d78d92daf57d.tar.bz2 |
cmTarget: Use strtol for numeric parsing.
On Windows apparently sscanf can not handle hex numbers.
Test that numeric comparison works with hex numbers.
Diffstat (limited to 'Tests/CompatibleInterface/main.cpp')
-rw-r--r-- | Tests/CompatibleInterface/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/CompatibleInterface/main.cpp b/Tests/CompatibleInterface/main.cpp index fa299e9..e23625a 100644 --- a/Tests/CompatibleInterface/main.cpp +++ b/Tests/CompatibleInterface/main.cpp @@ -33,7 +33,9 @@ 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>) + NumericMinTest2 = sizeof(CMakeStaticAssert<NUMBER_MIN_PROP2 == 200>), + NumericMinTest3 = sizeof(CMakeStaticAssert<NUMBER_MIN_PROP3 == 0xA>), + NumericMinTest4 = sizeof(CMakeStaticAssert<NUMBER_MIN_PROP4 == 0x10>) }; #include "iface2.h" |