Brendan Coupe reported a compile error with kmymoney from 4.8 branch at https://mail.kde.org/pipermail/kmymoney-devel/2017-August/019112.html. From the thread it looks that kmymoney build system uses some outdated variables (KMyMoney2_SOURCE_DIR and KMyMoney2_BINARY_DIR) for generating kmymoneysettings.h|cpp, which should be fixed in the build system.
Git commit b0a68ca075928aa29ee1e0007bfb14d714f5a948 by Ralf Habacker. Committed on 10/08/2017 at 11:45. Pushed by habacker into branch '4.8'. Fix 'Compile error on Fedora 26' CMake build system used some outdated variables which has been replaced by cmake build in variables to fix the issue. FIXED-IN:4.8.1 M +4 -5 kmymoney/dialogs/settings/CMakeLists.txt https://commits.kde.org/kmymoney/b0a68ca075928aa29ee1e0007bfb14d714f5a948