MantisBT - CMake
View Issue Details
0015961CMakeCMakepublic2016-02-09 08:142016-06-10 14:31
raffael casagrande 
Kitware Robot 
normalminoralways
closedmoved 
Windows 7
CMake 3.3.2 
 
0015961: CMake Regex does not support lookahead regular expressions.
Trying to use a Regular expression that contains a lookahead clause is not supported by CMake.
Try 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)".
No tags attached.
Issue History
2016-02-09 08:14raffael casagrandeNew Issue
2016-02-09 09:07Ben BoeckelNote Added: 0040447
2016-06-10 14:29Kitware RobotNote Added: 0042935
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0040447)
Ben Boeckel   
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   
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.