[CMake] [Fortran] Default flags for ifort on windows (and mxing C and Fortran)
Maik Beckmann
beckmann.maik at googlemail.com
Thu Jun 25 11:51:26 EDT 2009
Clinton Stimpson schrieb am Donnerstag 25 Juni 2009 um 16:38:
> On 06/25/2009 06:47 AM, Maik Beckmann wrote:
> > Hello,
> >
> > What about altering
> > SET (CMAKE_Fortran_FLAGS_INIT "/W1 /nologo /fpp")
> > SET (CMAKE_Fortran_FLAGS_RELEASE_INIT "/MD /O1 /D NDEBUG")
>>
> > SET (CMAKE_Fortran_FLAGS_INIT "/W1 /nologo /fpp /libs:dll /threads")
> > SET (CMAKE_Fortran_FLAGS_RELEASE_INIT "/MD /O1 /D NDEBUG")
>
> If you add /libs:dll to all build types, then you can take /MD out of
> CMAKE_Fortran_FLAGS_RELEASE_INIT> .
Right, just forgot to remove it :P.
> I had the same problem as you, and an almost identical patch sumbitted
> here: http://public.kitware.com/Bug/view.php?id=8744
>
> Clint
Your patch doesn't cover /MDd (/libs:dll /threads /dbglibs), I'll attach a
patch to you bug report, if you don't mind.
Best,
-- Maik
More information about the CMake
mailing list