<div>Sorry for delay... I checked that setting CMAKE_EXE_LINKER_FLAGS without</div><div>CACHE attribute doesnt make a change. But if I switched to NMake then all things</div><div>started to work. Incremental linking is turned off, traceback works.<br>
Exactly the same CMakeLists.txt produces wrong project for VS.</div><div> </div><div>What do you think about different lines that I see in vfproj file? I mean </div><div>LinkIncremental="1" and LinkIncremental="linkIncrementalNo". I searched the internet and</div>
<div>found both options. For me CMake produces vfproj with "1" but Intel Fortran -</div><div>with "linkIncrementalNo"...</div><div> </div><div>Thanks,</div><div>Alexander</div><div><br> </div><div class="gmail_quote">
2012/9/4 Petr Kmoch <span dir="ltr"><<a href="mailto:petr.kmoch@gmail.com" target="_blank">petr.kmoch@gmail.com</a>></span><br><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
One more thing I noticed - CMAKE_EXE_LINKER_FLAGS is normally not a<br>
cache variable, and having both a cache and non-cache var of the same<br>
name can have weird consequences. Maybe try just setting it without<br>
CACHE STRING ...<br>
<br>
If that doesn't help, can you generate a different buildsystem<br>
(perhaps NMake) and see what the command line looks like there?<br>
Perhaps a flag turning incremental linking on comes from a different<br>
variable (there's a lot of cmake vars which make up the final command<br>
line).<br>
<br>
Petr<br>
<div class="HOEnZb"><div class="h5"><br>
On Mon, Sep 3, 2012 at 6:34 PM, Alexander Ivanov<br>
<<a href="mailto:alexander.nik.ivanov@gmail.com">alexander.nik.ivanov@gmail.com</a>> wrote:<br>
> Hi Petr,<br>
> Unfortunately it doesn't. I changed the sample as following but<br>
> intel fortran ignores incremental linking setting.<br>
><br>
> cmake_minimum_required(VERSION 2.8)<br>
> project(TestF90 Fortran)<br>
> set(CMAKE_EXE_LINKER_FLAGS "/INCREMENTAL:NO"<br>
> CACHE STRING "EXE_LINKER_FLAGS" FORCE)<br>
> add_executable(TestF90_EXE main.f90)<br>
><br>
> Thanks,<br>
> Alexander<br>
> 2012/9/3 Petr Kmoch <<a href="mailto:petr.kmoch@gmail.com">petr.kmoch@gmail.com</a>><br>
>><br>
>> Hi Alexander.<br>
>><br>
>> CMAKE_EXE_LINKER_FLAGS and similar variables can only be modified<br>
>> after a call to PROJECT() (the PROJECT() calls sets them up to some<br>
>> defaults). See if this fixes your issue.<br>
>><br>
>> Petr<br>
><br>
><br>
><br>
</div></div><span class="HOEnZb"><font color="#888888">> --<br>
><br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the CMake FAQ at:<br>
> <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</font></span></blockquote></div><br>