I send a example where happen explained before ( I have similar struct
in my Program). I include too the VS2008 project generate by cmake. In
the Fortran Project be can seen that use /W3 /Zm1000 /GR /RTC1 /TP
Flags that don't work with ifort.<br>
I use CMake 2.8 rc2 (but happen same in 2.6 and 2.7)<br><br>Thanks.<br><br>Sebastian<br><br>PD: I can't attach VS2008 project because too big, but i send CMake struct and files.<br><br><div class="gmail_quote">On Tue, Oct 6, 2009 at 8:38 PM, Sebas <span dir="ltr"><<a href="mailto:spaseba@gmail.com">spaseba@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I have a program write in fortran 95 that use an C library. When I use TARGET_LINK_LIBRARIES( FortranProgram CLibrary ), the FortranProgram project of the VS2008 has compiler flags incorrect. Cmake assign flags of the C compiler.<br>
When i use TARGET_LINK_LIBRARIES( FortranProgram ), the flags are correct.<br>CLibrary is in her own directory, with ADD_LIBRARY and TARGET_LINK_LIBRARIES to other C-C++ Librarys.<br><br>I use Intel Fortran y Microsoft C/C++ compilers.<br>
<br>Thanks if someone give one clue of the problem.<br><br>Sebastian<br>
</blockquote></div><br>