Re: [CMake] How to turn off incremental linking for MSVC Debug and RelWithDebInfo targets?

2010-02-15 Thread Erwin Coumans
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:

Re: [CMake] How to turn off incremental linking for MSVC Debug and RelWithDebInfo targets?

2010-02-11 Thread Erwin Coumans
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

Re: [CMake] How to turn off incremental linking for MSVC Debug and RelWithDebInfo targets?

2010-02-11 Thread John Drescher
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,

Re: [CMake] How to turn off incremental linking for MSVC Debug and RelWithDebInfo targets?

2010-02-09 Thread Erwin Coumans
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

Re: [CMake] How to turn off incremental linking for MSVC Debug and RelWithDebInfo targets?

2010-02-09 Thread John Drescher
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

[CMake] How to turn off incremental linking for MSVC Debug and RelWithDebInfo targets?

2010-02-08 Thread Erwin Coumans
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