View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013037CMakeCMakepublic2012-03-12 07:102016-06-10 14:31
ReporterMathieu Malaterre 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0013037: Support #[ \t]*cmakedefine
DescriptionIt 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
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0028891)
Brad King (manager)
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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2012-03-12 07:10 Mathieu Malaterre New Issue
2012-03-12 09:12 Brad King Note Added: 0028891
2012-03-12 09:12 Brad King Status new => backlog
2016-06-10 14:28 Kitware Robot Note Added: 0042003
2016-06-10 14:28 Kitware Robot Status backlog => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:28 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team