The error occurs because CMake detects a mismatch between the cached paths and the current paths of your project. This happens when you move the project directory or use a different source directory after generating the CMakeCache.txt.
cmake -S windows -B build/windows/x64
Delete the Cache Files:
Navigate to the build directory: D:/application/news_app/build/windows/x64 Delete the CMakeCache.txt file and the entire CMakeFiles directory.