[CMake] ifort 9.1 unable to compile a simple test program

Brad King brad.king at kitware.com
Mon Aug 9 09:33:48 EDT 2010


On 08/07/2010 03:52 AM, Verweij, Arjen wrote:
> Apparently it breaks because of /INCREMENTAL:YES --

Interesting.  It works for ifort 11.1.  So does

  ifort /incremental:yes myfile.f

ICE for any file with ifort 9.1?

> Can I just turn this off in Windows-ifort.cmake or is this
> symptomatic of another problem?

Yes, but I'd like to address this upstream too.  Let me know if

  SET (CMAKE_EXE_LINKER_FLAGS_INIT " /INCREMENTAL:YES")

from Windows-ifort.cmake works.

That line is just an optimization in the default flags anyway.
Removing it should not break anyone's current builds.  If
someone really wants that he/she can add it to the CMakeCache
in CMAKE_EXE_LINKER_FLAGS directly.

Thanks,
-Brad


More information about the CMake mailing list