View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015181CMakeCMakepublic2014-09-30 13:182016-01-04 11:52
Reportertron_thomas 
Assigned ToRobert Maynard 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionduplicate 
PlatformOSOS Version
Product VersionCMake 2.8.12.2 
Target VersionFixed in Version 
Summary0015181: math can't handle negative numbers.
DescriptionThe math command cannot do addition with negative numbers
Steps To ReproduceRun CMake against the following CMakeLists.txt file:

cmake_minimum_required (VERSION 2.8)

project (MathFailure)

set (value -1)
math (EXPR value "${value} + 1")

Expected:
value should be incremented to zero

Actual:
CMake Error at CMakeLists.txt:6 (math):
  math cannot parse the expression: "-1 + 1": syntax error, unexpected
  exp_MINUS, expecting exp_OPENPARENT or exp_NUMBER (1)

TagsNo tags attached.
Attached Files

 Relationships
duplicate of 0008996closedBill Hoffman Bug in MATH EXPR 
related to 0015707closedRobert Maynard Error at: math(EXPR value "-1 + 1") 

  Notes
(0036879)
David Cole (manager)
2014-09-30 13:53

It's been in there for quite a while like that. Duplicate issue is more than 5 years old...
(0040121)
Robert Maynard (manager)
2016-01-04 11:52

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2014-09-30 13:18 tron_thomas New Issue
2014-09-30 13:52 David Cole Relationship added duplicate of 0008996
2014-09-30 13:53 David Cole Note Added: 0036879
2015-08-22 05:44 David Cole Relationship added related to 0015707
2015-08-22 05:44 David Cole Status new => resolved
2015-08-22 05:44 David Cole Resolution open => duplicate
2015-08-22 05:44 David Cole Assigned To => Robert Maynard
2016-01-04 11:52 Robert Maynard Note Added: 0040121
2016-01-04 11:52 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team