Skip to content

Work around CMake multi-config generators

Amy spark requested to merge (removed):work/amyspark/fix-msvs-generator into master

👋

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 .

Merge request reports