View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010112CMakeCMakepublic2010-01-08 16:082016-06-10 14:31
Reporterpeastman 
Assigned ToKitware Robot 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in Version 
Summary0010112: string(CONFIGURE ... ESCAPE_QUOTES) does not work
DescriptionWhen 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.
TagsNo tags attached.
Attached Filespatch file icon 0001-string-CONFIGURE-add-a-real-testcase-for-ESCAPE_QUOT.patch [^] (1,686 bytes) 2012-09-09 06:37 [Show Content]

 Relationships

  Notes
(0030965)
Rolf Eike Beer (developer)
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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2010-01-08 16:08 peastman New Issue
2010-12-15 07:21 David Cole Assigned To => David Cole
2010-12-15 07:21 David Cole Status new => assigned
2011-02-09 14:26 David Cole Status assigned => backlog
2011-02-09 15:09 David Cole Assigned To David Cole =>
2012-09-09 06:37 Rolf Eike Beer File Added: 0001-string-CONFIGURE-add-a-real-testcase-for-ESCAPE_QUOT.patch
2012-09-09 09:04 Rolf Eike Beer Note Added: 0030965
2016-06-10 14:27 Kitware Robot Note Added: 0041638
2016-06-10 14:27 Kitware Robot Status backlog => resolved
2016-06-10 14:27 Kitware Robot Resolution open => moved
2016-06-10 14:27 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team