MantisBT - CMake
View Issue Details
0010112CMakeCMakepublic2010-01-08 16:082016-06-10 14:31
peastman 
Kitware Robot 
normalmajoralways
closedmoved 
CMake-2-6 
 
0010112: string(CONFIGURE ... ESCAPE_QUOTES) does not work
When using the string(CONFIGURE ...) command, the ESCAPE_QUOTES option is simply ignored. For example, the following script

set(foo \"Hello!\")
message(${foo})
string(CONFIGURE "@foo@" result ESCAPE_QUOTES)
message(${result})

produces this output:

"Hello!"
"Hello!"

As you can see, the quotes have not been escaped.
No tags attached.
patch 0001-string-CONFIGURE-add-a-real-testcase-for-ESCAPE_QUOT.patch (1,686) 2012-09-09 06:37
https://public.kitware.com/Bug/file/4468/0001-string-CONFIGURE-add-a-real-testcase-for-ESCAPE_QUOT.patch
Issue History
2010-01-08 16:08peastmanNew Issue
2010-12-15 07:21David ColeAssigned To => David Cole
2010-12-15 07:21David ColeStatusnew => assigned
2011-02-09 14:26David ColeStatusassigned => backlog
2011-02-09 15:09David ColeAssigned ToDavid Cole =>
2012-09-09 06:37Rolf Eike BeerFile Added: 0001-string-CONFIGURE-add-a-real-testcase-for-ESCAPE_QUOT.patch
2012-09-09 09:04Rolf Eike BeerNote Added: 0030965
2016-06-10 14:27Kitware RobotNote Added: 0041638
2016-06-10 14:27Kitware RobotStatusbacklog => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:27Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0030965)
Rolf Eike Beer   
2012-09-09 09:04   
The problem is that cmCommand::InvokeInitialPass() already expands the variables (even the @ ones) before the stuff even reaches cmStringCommand::HandleConfigureCommand().
(0041638)
Kitware Robot   
2016-06-10 14:27   
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.