[Solved] ninja: error: build.ninja:1802: multiple rules generate Debug/xxx.exe [-w dupbuild=err]

Error Messages:

— Configuring done
— Generating done
CMake Error:
Running    ‘D:/Qt/Tools/Ninja/ninja.exe’ ‘-C’ ‘D:/code/build-EFR-linux247-Debug’ ‘-t’ ‘recompact’   failed with:    ninja: error: build.ninja:1802: multiple rules generate Debug/xxx.exe [-w dupbuild=err]

Cause:
Duplicate multiple targets
CMAKE If the specified target is the same as the target path automatically generated by qt, this problem will occur
Solution:
Modify the target path

Read More: