<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>RE: [CMake] windows paths...</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>doesn't work:<BR>
<BR>
S:\software\fubar\build&gt;type ..\CMakeLists.txt<BR>
<BR>
FILE( TO_CMAKE_PATH GLOB &quot;S:\software\data\profiles.xml&quot; )<BR>
FILE( TO_CMAKE_PATH GLOB S:\software\data\profiles.xml )<BR>
<BR>
<BR>
<BR>
S:\software\fubar\build&gt;cmake ..<BR>
CMake Error: Invalid escape sequence \s<BR>
Syntax error in cmake code at<BR>
S:/software/fubar/CMakeLists.txt:2:<BR>
syntax error, unexpected cal_ERROR, expecting $end (4), when parsing string &quot;S:\software\data\profiles.xml&quot;<BR>
CMake Error: Invalid escape sequence \s<BR>
Syntax error in cmake code at<BR>
S:/software/fubar/CMakeLists.txt:3:<BR>
syntax error, unexpected cal_ERROR, expecting $end (4), when parsing string &quot;S:\software\data\profiles.xml&quot;<BR>
-- Configuring done<BR>
<BR>
S:\software\fubar\build&gt;cmake --version<BR>
cmake version 2.4-patch 8<BR>
<BR>
S:\software\fubar\build&gt;<BR>
<BR>
Also, I need it for commands other than file; like &quot;ADD_SUBDIRECTORY()&quot;.<BR>
<BR>
-phil<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: cmake-bounces@cmake.org on behalf of Alexander Neundorf<BR>
Sent: Mon 5/12/2008 1:49 AM<BR>
To: cmake@cmake.org<BR>
Subject: Re: [CMake] windows paths...<BR>
<BR>
On Monday 12 May 2008, Phil Pellouchoud wrote:<BR>
&gt; hi all,<BR>
&gt;<BR>
&gt; this is driving me a bit crazy and I'm sure someone on here has encountered<BR>
&gt; this before.<BR>
&gt;<BR>
&gt; our build system is based on environment variables.<BR>
&gt;<BR>
&gt; the paths in the environment variables looks something like this:<BR>
&gt; S:\software\...<BR>
&gt;<BR>
&gt; When I feed that into cmake, I get errors like:<BR>
&gt; syntax error, unexpected cal_ERROR, ..... when parsing string<BR>
&gt; &quot;S:\software...&quot;<BR>
&gt;<BR>
&gt; and &quot;CMake Error: Invalid escape sequence \s&quot;<BR>
&gt;<BR>
&gt; So, there must be a good way around this.&nbsp; I think my options are:<BR>
<BR>
file(TO_CMAKE_PATH ...) should do what you want.<BR>
<BR>
Alex<BR>
_______________________________________________<BR>
CMake mailing list<BR>
CMake@cmake.org<BR>
<A HREF="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</A><BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>