The source project of this merge request has been removed.
Work around CMake multi-config generators
This is a PR to fix building KConfig under Visual Studio. Mixing generator expressions and CMAKE_CURRENT_BINARY_DIR results in all configurations trying to write to the same file. See e.g. https://gitlab.kitware.com/cmake/cmake/-/issues/20682. I based the workaround on: https://codereview.qt-project.org/c/qt/qtbase/+/299372
This patch has been shipping in Krita since graphics/krita@1e1d93b4 .