[osg-submissions] Plugin DLL search order fix for Win32

Luigi Calori l.calori at cineca.it
Sun Aug 26 17:42:15 PDT 2007


Gordon Tomlinson wrote:

>is there an overriding need for incremental builds ? if you remove this is
>removes the need for dang ilk files
>
>  
>
No idea, this is the CMake default for debug builds.
What is the difference between incremental and non incremental builds 
apart from .ilk production?

In order to get rid of .ilk, add

# to avoid incremental link in debug build
    IF(MSVC)
        SET(CMAKE_MODULE_LINKER_FLAGS_DEBUG "/debug /INCREMENTAL:NO")
        SET(CMAKE_SHARED_LINKER_FLAGS_DEBUG "/debug /INCREMENTAL:NO")
        SET(CMAKE_EXE_LINKER_FLAGS_DEBUG "/debug /INCREMENTAL:NO")
    ENDIF(MSVC)

to the topmost CMakeLists.txt
I hve built with it and it seems ok, if you are confident we can add it 
ir at least make it switchable with an option


More information about the osg-submissions mailing list