Thanks John, it has been a painful cmake experience to turn off incremental
linking for debug builds.
Apparently, the SET(MSVC_INCREMENTAL_DEFAULT ON) has to appear before the
PROJECT line, otherwise it doesn't work.
Here is the solution that works for me, hope this saves others time:
I can't find where this INCREMENTAL:YES is coming from.
Is there a better way than hacking the 'cmLocalVisualStudio7Generator
::GetBuildTypeLinkerFlags'
to replace INCREMENTAL:YES by INCREMENTAL:NO?
Thanks a lot,
Erwin
On Thu, Feb 11, 2010 at 6:46 PM, Erwin Coumans erwin.coum...@gmail.com wrote:
I can't find where this INCREMENTAL:YES is coming from.
Is there a better way than hacking the 'cmLocalVisualStudio7Generator
::GetBuildTypeLinkerFlags'
to replace INCREMENTAL:YES by INCREMENTAL:NO?
Thanks a lot,
It would be great to have an answer on this, did I miss it in the FAQs?
How can we switch off incremental linking for Debug and RelWithDebInfo
target on Windows Visual Studio projects?
Thanks a lot,
Erwin
On 8 February 2010 11:44, Erwin Coumans erwin.coum...@gmail.com wrote:
I've search a
STRING(REPLACE INCREMENTAL:YES INCREMENTAL:NO replacementFlags
${CMAKE_EXE_LINKER_FLAGS_DEBUG})
message (${replacementFlags})
SET(CMAKE_SHARED_LINKER_FLAGS_DEBUG ${replacementFlags})
STRING(REPLACE INCREMENTAL:YES INCREMENTAL:NO
I've search a while and noticed several similar requests, but couldn't find
a solution that works.
http://www.mail-archive.com/cmake@cmake.org/msg19612.html
http://www.ogre3d.org/forums/viewtopic.php?f=4t=45160