[CMake] windows paths...
Alexander Neundorf
a.neundorf-work at gmx.net
Mon May 12 04:49:52 EDT 2008
On Monday 12 May 2008, Phil Pellouchoud wrote:
> hi all,
>
> this is driving me a bit crazy and I'm sure someone on here has encountered
> this before.
>
> our build system is based on environment variables.
>
> the paths in the environment variables looks something like this:
> S:\software\...
>
> When I feed that into cmake, I get errors like:
> syntax error, unexpected cal_ERROR, ..... when parsing string
> "S:\software..."
>
> and "CMake Error: Invalid escape sequence \s"
>
> So, there must be a good way around this. I think my options are:
file(TO_CMAKE_PATH ...) should do what you want.
Alex
More information about the CMake
mailing list