[cmake-developers] [CMake 0014410]: crash with invalid generator expression syntax

Mantis Bug Tracker mantis at public.kitware.com
Fri Sep 13 10:38:44 EDT 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://cmake.org/Bug/view.php?id=14410 
====================================================================== 
Reported By:                Clinton Stimpson
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14410
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-09-13 10:38 EDT
Last Modified:              2013-09-13 10:38 EDT
====================================================================== 
Summary:                    crash with invalid generator expression syntax
Description: 
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().


http://cmake.org/Bug/view.php?id=10 0x00000001002675c7 in
stripAllGeneratorExpressions (input=@0x7fff5fbfe498) at
cmGeneratorExpression.cxx:227
227	  result += input.substr(lastPos);

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-09-13 10:38 Clinton StimpsonNew Issue                                    
======================================================================




More information about the cmake-developers mailing list