Allow to disable incremental linker on MSVC
Currently we have issues with incremental linker of MSVC that the compilation will never finish as long we don't disable incremental linker. Each time there is a change in our CMakeLists CMake will reset our settings. I tried already a lot of solutions I found at the web to replace /INCREMENTAL flag to /INCREMENTAL:NO, but CMake always overwrite it, even we changed value in last line of our CMakeLists. So a flag provieded by CMake to disable it by default would be nice.
Only working solution is currently:
if(MSVC)
set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "/INCREMENTAL:NO")
endif()
But I don't want it to set on all projects manually.