[Cmake] Trouble with / and \

John Biddiscombe john.biddiscombe@mirada-solutions.com
Thu, 30 Jan 2003 09:19:51 -0000


STRING(REGEX REPLACE "/" "\\\\" SAFE_JavaR2_BINARY_DIR "C:/stuff/test")

Works!

Looks as though the string is being through the escape sequence cleaner
twice. Sorry

JB


-----Original Message-----
From: John Biddiscombe=20
Sent: 30 January 2003 09:17
To: Andy Cedilnik
Cc: CMake
Subject: RE: [Cmake] Trouble with / and \

STRING(REGEX REPLACE "/" "\\" BINDIR ${JavaR2_BINARY_DIR})

Actually. Cmake won't allow me to do this. It reports that sequence is
not allowed to end in \

If I try to fool it by adding a space or similar afterwards it says
invalid escape sequence.

It looks as though something is wrong somewhere. Am I missing an escape
character somewhere. I've tried several combinations

JB

_______________________________________________
Cmake mailing list
Cmake@public.kitware.com
http://public.kitware.com/mailman/listinfo/cmake