On the Solution Explorer, right click on the folder name and select CMake Workspace Settings. Change enable CMake to true and save, and CMake should work again.