[Cmake] Trouble with / and \

John Biddiscombe john.biddiscombe at mirada-solutions.com
Thu Jan 30 04:19:51 EST 2003


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 
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 at public.kitware.com
http://public.kitware.com/mailman/listinfo/cmake



More information about the CMake mailing list