Configure works fine without f77 bindings, but as soon as I add this option, I get the error:
Checking for working Fortran compiler...
Microsoft (R) Incremental Linker Version 8.00.50727.762
Copyright (C) Microsoft Corporation. All rights reserved.
LIBCMT.lib(crt0dat.obj) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
Intel(R) Fortran Compiler for 32-bit applications, Version 9.1 Build 20070322Z Package ID: W_FC_C_9.1.037
Copyright (C) 1985-2007 Intel Corporation. All rights reserved.
Fortran compiler ifort.exe can't compile a simple fortran program.
CMake Error at contrib/platform/win32/CMakeModules/setup_f77.cmake:116 (MESSAGE):
Cannot continue. Please check Fortran compiler installation, or disable
Call Stack (most recent call first):
Configuring incomplete, errors occurred!
I am using all default options, except that I have specified a cmake_build_type of release. Both the c and cxx compilers appear to be pointing to the 64 bit versions, but changing these to the 32 bit versions does not seem to matter.
If I attempt to compile testFortranCompiler from a command prompt it compiles without any difficulties (ifort testFortranCompiler.f, with no other flags).
Any ideas which options I am missing to get this to work?