[CMake] cmake 2.8.2 win32: invalid escape sequence when finding fortran compiler

John Drescher drescherjm at gmail.com
Wed Jul 14 11:23:25 EDT 2010


On Wed, Jul 14, 2010 at 11:15 AM, Verweij, Arjen <VerweijA at tass-safe.com> wrote:
> Hi,
>
>>
>>You seem to have a path using \ instead of /
>>
>
> Isn't that to be expected of a PATH setting on a Windows computer?
> Anyway, the path to the Visual Studio compiler is of the same format and cmake deals with it just fine.
>

I use / for all paths inside my CMakeLists.txt files even on windows
computers. If I am grabbing paths from the environment I use a string
replace in the CMakeLists.txt

string (REPLACE "\\" "/" PGM_FILES $ENV{PROGRAMFILES})

John


More information about the CMake mailing list