I build a shared library with CMake and the Ninja generator on Windows. I'd like to use incremental linking to reduce the time required for linking.
I tried to set CMAKE_SHARED_LINKER_FLAGS
to "/incremental"
but this flag is always overridden by a "/INCREMENTAL:NO"
which is appended by CMake.
I also tried to set MSVC_INCREMENTAL_DEFAULT
to ON
, but this didn't have any effect.
So how can I get incremental linking working with CMake and the Ninja generator?