[cmake-developers] [CMake 0015961]: CMake Regex does not support lookahead regular expressions.
Mantis Bug Tracker
mantis at public.kitware.com
Tue Feb 9 08:14:36 EST 2016
The following issue has been SUBMITTED.
======================================================================
https://cmake.org/Bug/view.php?id=15961
======================================================================
Reported By: raffael casagrande
Assigned To:
======================================================================
Project: CMake
Issue ID: 15961
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2016-02-09 08:14 EST
Last Modified: 2016-02-09 08:14 EST
======================================================================
Summary: CMake Regex does not support lookahead regular
expressions.
Description:
Trying to use a Regular expression that contains a lookahead clause is not
supported by CMake.
Steps to Reproduce:
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)".
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2016-02-09 08:14 raffael casagrandeNew Issue
======================================================================
More information about the cmake-developers
mailing list