Is there a reason that incremental linking is enabled by default with
generated output from cmake?  Hmm and it's not disabled in release
mode... I went to check to see what the option actually does for (or
to) me..

-- from http://msdn.microsoft.com/en-us/library/4khtbfyf(v=vs.80).aspx --

An incrementally linked program is functionally equivalent to a
program that is nonincrementally linked. However, because it is
prepared for subsequent incremental links, an incrementally linked
executable (.exe) file or dynamic-link library (DLL):

Is larger than a nonincrementally linked program because of padding of
code and data. (Padding allows the linker to increase the size of
functions and data without recreating the .exe file.)

May contain jump thunks to handle relocation of functions to new addresses.

Note
To ensure that your final release build does not contain padding or
thunks, link your program nonincrementally.

----

Does make sense for debug modes, if edit and continue is enabled... I
see that's not enabled though...

I wouldn't have even stumbled across this other than I have two
projects (video_link_server) and (video_link_server.isp)  (the first
is a program, and gets an implied .exe extension sorta) which both try
to reference $(OutDir)/video_link_server[.ilk] for incremental
linking.   Since that file isn't explicitly defined by cmake output,
can't directly blame cmake; however, if incremental linking isn't a
feature, disabling it will fix this....
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to