MantisBT - CMake
View Issue Details
0012999CMakeCMakepublic2012-02-26 18:062012-09-03 16:02
Modestas Vainius 
Brad King 
normalminoralways
closedfixed 
amd64Debian GNU/Linuxsid
CMake 2.8.7 
CMake 2.8.8CMake 2.8.8 
0012999: Metachars should be escaped before embedding paths into the regex
${CMake_SOURCE_DIR} and ${CMake_BINARY_DIR} cannot be embedded into regex
directly. If they contain special regex metacharacters like +, the regex
will break. This could be fixed by escaping such metacharacters with a backslash before embedding the path into the regex (patch attached). Maybe it's even worth adding a subroutine to STRING command which does escaping, isn't it?

The issue affects the following tests: CTestTestConfigFileInBuildDir1 and
CTestTestConfigFileInBuildDir2.

The build log exhibiting the problem can be found at https://buildd.debian.org/status/fetch.php?pkg=cmake&arch=mipsel&ver=2.8.7-2%2Bb1&stamp=1330241990 [^]
No tags attached.
diff paths_in_regex_espace_metachars.diff (2,770) 2012-02-26 18:06
https://public.kitware.com/Bug/file/4234/paths_in_regex_espace_metachars.diff
Issue History
2012-02-26 18:06Modestas VainiusNew Issue
2012-02-26 18:06Modestas VainiusFile Added: paths_in_regex_espace_metachars.diff
2012-02-27 09:03Brad KingNote Added: 0028725
2012-02-27 09:03Brad KingStatusnew => resolved
2012-02-27 09:03Brad KingFixed in Version => CMake 2.8.8
2012-02-27 09:03Brad KingResolutionopen => fixed
2012-02-27 09:03Brad KingAssigned To => Brad King
2012-04-19 15:51David ColeTarget Version => CMake 2.8.8
2012-09-03 16:02David ColeNote Added: 0030883
2012-09-03 16:02David ColeStatusresolved => closed

Notes
(0028725)
Brad King   
2012-02-27 09:03   
Applied, thanks:

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f5cf8f98 [^]
(0030883)
David Cole   
2012-09-03 16:02   
Closing resolved issues that have not been updated in more than 4 months.