The first parameter is the path to the *directory* containing the `CMakeCache.txt` file, not the file itself.