View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015961CMakeCMakepublic2016-02-09 08:142016-06-10 14:31
Reporterraffael casagrande 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformWindows 7OSOS Version
Product VersionCMake 3.3.2 
Target VersionFixed in Version 
Summary0015961: CMake Regex does not support lookahead regular expressions.
DescriptionTrying to use a Regular expression that contains a lookahead clause is not supported by CMake.
Steps To ReproduceTry to execute the following CMake statement:
string(REGEX MATH "(?!red|green|blue)" _bla ${CMAKE_CURRENT_LIST_DIR})

It will fail with:

 string sub-command REGEX, mode REPLACE failed to compile regex
  "(?!red|green|blue)".
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0040447)
Ben Boeckel (developer)
2016-02-09 09:07

Yeah, that isn't supported. Adding support would likely mean rewriting the regex engine (which is old, global variable-driven C code).
(0042935)
Kitware Robot (administrator)
2016-06-10 14:29

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
2016-02-09 08:14 raffael casagrande New Issue
2016-02-09 09:07 Ben Boeckel Note Added: 0040447
2016-06-10 14:29 Kitware Robot Note Added: 0042935
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team