Thanks Bill for the trick.<br><br>Unfortunately this works only for exe targets.<br>It doesn't work for dll's. Moreover, before the link command there is this output: "Visual Studio Non-Incremental Link"<br>
<br>Below you have the verbose build output (regardless if it's the first, 2nd, etc). Maybe this helps.<br><br>Linking CXX shared library zorba_simplestore.dll<br> cd C:\Users\Gabriel\Work\28msec\zorba\builds\debug10\src<br>
"C:\Program Files\CMake 2.8\bin\cmake.exe" -E vs_link_dll C:\PROGRA~1\MICROS~2.0\VC\bin\link.exe /nologo @CMakeFiles\zorba_simplestore.dir\objects1.rsp<br>@C:\Users\Gabriel\AppData\Local\Temp\nm565E.tmp<br>
<b>Visual Studio Non-Incremental Link</b><br>LINK:<br>C:\PROGRA~1\MICROS~2.0\VC\bin\link.exe /nologo @CMakeFiles\zorba_simplestore.dir\objects1.rsp /out:zorba_simplestore.dll /implib:zorba_simplestore.lib /pdb:C:\U<br>sers\Gabriel\Work\28msec\zorba\builds\debug10\src\zorba_simplestore.pdb /dll /version:1.5 /STACK:10000000 /machine:X86 /debug C:\Users\Gabriel\Work\28msec\tools<br>
\curl_7_19_3\libcurl_imp.lib C:\Users\Gabriel\Work\28msec\tools\tidy\lib\tidy.lib C:\Users\Gabriel\Work\28msec\tools\iconv\lib\iconv.lib C:\Users\Gabriel\Work\2<br>8msec\tools\icu_4_4_1_src\lib\icuuc.lib C:\Users\Gabriel\Work\28msec\tools\icu_4_4_1_src\lib\icuin.lib C:\Users\Gabriel\Work\28msec\tools\icu_4_4_1_src\lib\icud<br>
t.lib C:\Users\Gabriel\Work\28msec\tools\libxml2\lib\libxml2.lib C:\Users\Gabriel\Work\28msec\tools\xerces-c-3.1.1-x86-windows-vc-10.0\lib\xerces-c_3.lib C:\Use<br>rs\Gabriel\Work\28msec\tools\libxml2\lib\libxml2.lib ..\external\json\json.lib wsock32.lib C:\Users\Gabriel\Work\28msec\tools\xerces-c-3.1.1-x86-windows-vc-10.0<br>
\lib\xerces-c_3.lib wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST<br><b>LINK : zorba_simplestore.dll not found or not built by the last incremental link; performing full link</b><br>
Creating library zorba_simplestore.lib and object zorba_simplestore.exp<br>MT:<br>C:/Program Files/Microsoft SDKs/Windows/v7.0A/bin/mt.exe /nologo /manifest zorba_simplestore.dll.manifest /outputresource:zorba_simplestore.dll;#2<br>
cd C:\Users\Gabriel\Work\28msec\zorba\builds\debug10<br><br><br>On Thu, Dec 9, 2010 at 5:10 AM, Bill Hoffman <<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>> wrote:<br>> On 12/8/2010 10:18 PM, Bill Hoffman wrote:<br>
>><br>>> On 12/8/2010 4:21 PM, Gabriel Petrovay wrote:<br>>>><br>>>> Yes I did. That is why I am wrote this post. Regardless of previous<br>>>> build. I always get:<br>>>> LINK : examples.exe not found or not built by the last incremental<br>
>>> link; performing full link<br>>>><br>>><br>>> Try a make VERBOSE=1 with the /incremental:yes on, and post the results<br>>> of the second build that should be incremental.<br>>><br>
><br>> Never mind, I have reproduced the problem. It seems like the incremental<br>> linking is broken for VS 2010 nmake.<br>><br>> To get it to work, you have to do add /INCREMENTAL:YES to<br>> CMAKE_EXE_LINKER_FLAGS_DEBUG, you get a warning but it does the correct<br>
> thing with mt and the incremental linking:<br>><br>> [ 75%] Built target simpleLib<br>> Scanning dependencies of target Simple<br>> [100%] Building CXX object CMakeFiles/Simple.dir/simple.cxx.obj<br>> simple.cxx<br>
> Linking CXX executable Simple.exe<br>> LINK : warning LNK4224: /INCREMENTAL:YES is no longer supported; ignored<br>> [100%] Built target Simple<br>><br>> I will have to figure out a new way to add incremental linking to VS2010.<br>
><br>> -Bill<br>><br>><br>><br><br><br><br>-- <br>MSc Gabriel Petrovay<br>Mobile: +41(0)787978034<br><a href="http://www.28msec.com">www.28msec.com</a><br><br>