[CMake] string REGEX question

Steven Wilson steven.wesley.wilson at gmail.com
Fri Nov 20 20:19:26 EST 2009


Never mind, I figured out the problem...

Thanks,

Steve

On Fri, Nov 20, 2009 at 6:12 PM, Steven Wilson <
steven.wesley.wilson at gmail.com> wrote:

> I have the following string in a variable "C:\path\to\foo"
>
> I want to do something like the following:
>
> string(REGEX REPLACE "\\" "\\\\" OUTPUT_VAR ${INPUT_VAR})
>
> where INPUT_VAR contains the original string.
>
> I want the result to be:
>
> C:\\path\\to\\foo
>
> I'm just not seeing how to make this regular expression work.   If you have
> any suggestions I would appreciate the help!
>
> Thanks in advance,
>
> Steve
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091120/6929dbe1/attachment.htm>


More information about the CMake mailing list