summaryrefslogtreecommitdiffstats
path: root/Tests/CTestTestStopTime/GetDate.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-08-10 15:15:47 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-08-10 15:15:47 (GMT)
commit4887640b7a69ee1febc19c50add55f8e07bb42b8 (patch)
treef17a6b4132ce5cb302112e8e4b70fcd475f6dafe /Tests/CTestTestStopTime/GetDate.cmake
parent5aabfec9308bb8b85f19077c2514a0c34f1dbb87 (diff)
parent02d177c9cc05514baccfa530ab85eec65374fbcb (diff)
downloadCMake-4887640b7a69ee1febc19c50add55f8e07bb42b8.zip
CMake-4887640b7a69ee1febc19c50add55f8e07bb42b8.tar.gz
CMake-4887640b7a69ee1febc19c50add55f8e07bb42b8.tar.bz2
Merge topic 'add-extra-boolean-comparisons'
02d177c9 Add additional <= and >= comparison operators
Diffstat (limited to 'Tests/CTestTestStopTime/GetDate.cmake')
-rw-r--r--Tests/CTestTestStopTime/GetDate.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/CTestTestStopTime/GetDate.cmake b/Tests/CTestTestStopTime/GetDate.cmake
index edc6519..1f4cb24 100644
--- a/Tests/CTestTestStopTime/GetDate.cmake
+++ b/Tests/CTestTestStopTime/GetDate.cmake
@@ -106,11 +106,11 @@ macro(ADD_SECONDS sec)
set(new_min ${${GD_PREFIX}MINUTE})
set(new_hr ${${GD_PREFIX}HOUR})
math(EXPR new_sec "${sec} + ${${GD_PREFIX}SECOND}")
- while(${new_sec} GREATER 60 OR ${new_sec} EQUAL 60)
+ while(${new_sec} GREATER_EQUAL 60)
math(EXPR new_sec "${new_sec} - 60")
math(EXPR new_min "${${GD_PREFIX}MINUTE} + 1")
endwhile()
- while(${new_min} GREATER 60 OR ${new_min} EQUAL 60)
+ while(${new_min} GREATER_EQUAL 60)
math(EXPR new_min "${new_min} - 60")
math(EXPR new_hr "${${GD_PREFIX}HOUR} + 1")
endwhile()