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

Bill Hoffman bill.hoffman at kitware.com
Thu Jul 15 11:50:19 EDT 2010


On 7/15/2010 4:19 AM, Verweij, Arjen wrote:
> Spot on Bill:
>
> C:\Users\madymo\build\CMakeFiles\CMakeTmp>cat CMakeLists.txt
> cmake_minimum_required(VERSION 2.8)
> PROJECT(CMAKE_TRY_COMPILE Fortran)
> SET(CMAKE_VERBOSE_MAKEFILE 1)
> SET(CMAKE_Fortran_FLAGS " /w /I:"C:\Program Files\VNI\CTT5.0\include\IA32" /fpe:3 /nologo   ${COMPILE_DEFINITIONS}")
> INCLUDE_DIRECTORIES(${INCLUDE_DIRECTORIES})
> SET(CMAKE_SUPPRESS_REGENERATION 1)
> LINK_DIRECTORIES(${LINK_DIRECTORIES})
> ADD_EXECUTABLE(cmTryCompileExec "C:/Users/madymo/build/CMakeFiles/CMakeTmp/testFortranCompiler.f")
> TARGET_LINK_LIBRARIES(cmTryCompileExec ${LINK_LIBRARIES})
>
>> Also, what is in your environment?  Anything like CFLAGS, FFLAGS or
>> others that CMake might pick up and try to use?
>
> F90FLAGS=/w /I:"C:\Program Files\VNI\CTT5.0\include\IA32" /fpe:3 /nologo
> FFLAGS=/w /I:"C:\Program Files\VNI\CTT5.0\include\IA32" /fpe:3 /nologo
>
> I guess you get all these for free when you install the intel fortran compiler. I'll see if I can get rid of these without breaking the current build system :)
>

I don't think we ended up with those flags after installing the intel 
compiler for the dashboard we run at Kitware.  Are you sure that came 
from the installer?

-Bill


More information about the CMake mailing list