Re: [CMake] string REGEX question

2009-11-21 Thread Sören Freudiger
von Steven Wilson Gesendet: Samstag, 21. November 2009 02:13 An: CMake mailing list Betreff: [CMake] string REGEX question 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

[CMake] string REGEX question

2009-11-20 Thread Steven Wilson
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

Re: [CMake] string REGEX question

2009-11-20 Thread Steven Wilson
Never mind, I figured out the problem... Thanks, Steve On Fri, Nov 20, 2009 at 6:12 PM, Steven Wilson steven.wesley.wil...@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