MantisBT - CMake
View Issue Details
0014410CMakeCMakepublic2013-09-13 10:382014-03-05 09:58
Clinton Stimpson 
Stephen Kelly 
normalminoralways
closedfixed 
CMake 2.8.12 
CMake 2.8.12 
0014410: crash with invalid generator expression syntax
I did a

set_target_properties(framework PROPERTIES INCLUDE_DIRECTORIES "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}")

Where it is missing the closing '>' for the generator expression and it crashed in stripAllGeneratorExpressions() with lastPos being out of range for substr().


0000010 0x00000001002675c7 in stripAllGeneratorExpressions (input=@0x7fff5fbfe498) at cmGeneratorExpression.cxx:227
227 result += input.substr(lastPos);
No tags attached.
Issue History
2013-09-13 10:38Clinton StimpsonNew Issue
2013-09-13 11:08Brad KingAssigned To => Stephen Kelly
2013-09-13 11:08Brad KingStatusnew => assigned
2013-09-16 09:43Stephen KellyNote Added: 0033829
2013-09-16 09:43Stephen KellyStatusassigned => resolved
2013-09-16 09:43Stephen KellyFixed in Version => CMake 2.8.12
2013-09-16 09:43Stephen KellyResolutionopen => fixed
2014-03-05 09:58Robert MaynardNote Added: 0035258
2014-03-05 09:58Robert MaynardStatusresolved => closed

Notes
(0033829)
Stephen Kelly   
2013-09-16 09:43   
Fix merged to master: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=70089d0769902c58da925eb571ad430bec40e9da [^]
(0035258)
Robert Maynard   
2014-03-05 09:58   
Closing resolved issues that have not been updated in more than 4 months