OpenVAS Scanner Upgrade Issue

Cannot upgrade the OpenVAS Scanner when rebuilding from Source:

CMake Error: The source “/home/vasadmin/source/openvas-scanner-23.0.1/CMakeLists.txt” does not match the source “/home/vasadmin/source/openvas-scanner-22.7.9/CMakeLists.txt” used to generate cache. Re-run cmake with a different source directory.

Your advice are highly appreciated

(modertor note- the original poster requested this closed as the issue is fixed)