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

Verweij, Arjen VerweijA at tass-safe.com
Thu Jul 15 04:19:10 EDT 2010


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 :)

Thanks,
Arjen


More information about the CMake mailing list