MantisBT - CMake
View Issue Details
0013037CMakeCMakepublic2012-03-12 07:102016-06-10 14:31
Mathieu Malaterre 
Kitware Robot 
normalminoralways
closedmoved 
 
 
0013037: Support #[ \t]*cmakedefine
It would be nice if cmake would support space and/or tab in between # sign and cmakedefine keyword to get a nice indentation

#if BLA
# cmakedefine BAR
#else
# cmakedefine FOO
#endif
No tags attached.
Issue History
2012-03-12 07:10Mathieu MalaterreNew Issue
2012-03-12 09:12Brad KingNote Added: 0028891
2012-03-12 09:12Brad KingStatusnew => backlog
2016-06-10 14:28Kitware RobotNote Added: 0042003
2016-06-10 14:28Kitware RobotStatusbacklog => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0028891)
Brad King   
2012-03-12 09:12   
Try modifying these lines in Source/cmMakefile.cxx:

void cmMakefile::Initialize()
{
  this->cmDefineRegex.compile("#cmakedefine[ \t]+([A-Za-z_0-9]*)");
  this->cmDefine01Regex.compile("#cmakedefine01[ \t]+([A-Za-z_0-9]*)");
...


to fix the regex.
(0042003)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.