<!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>type ..\CMakeLists.txt<BR>
<BR>
FILE( TO_CMAKE_PATH GLOB "S:\software\data\profiles.xml" )<BR>
FILE( TO_CMAKE_PATH GLOB S:\software\data\profiles.xml )<BR>
<BR>
<BR>
<BR>
S:\software\fubar\build>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 "S:\software\data\profiles.xml"<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 "S:\software\data\profiles.xml"<BR>
-- Configuring done<BR>
<BR>
S:\software\fubar\build>cmake --version<BR>
cmake version 2.4-patch 8<BR>
<BR>
S:\software\fubar\build><BR>
<BR>
Also, I need it for commands other than file; like "ADD_SUBDIRECTORY()".<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>
> hi all,<BR>
><BR>
> this is driving me a bit crazy and I'm sure someone on here has encountered<BR>
> this before.<BR>
><BR>
> our build system is based on environment variables.<BR>
><BR>
> the paths in the environment variables looks something like this:<BR>
> S:\software\...<BR>
><BR>
> When I feed that into cmake, I get errors like:<BR>
> syntax error, unexpected cal_ERROR, ..... when parsing string<BR>
> "S:\software..."<BR>
><BR>
> and "CMake Error: Invalid escape sequence \s"<BR>
><BR>
> So, there must be a good way around this. 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>