Your setup and your use of cmake looks fine.
Can you please run the following command and attach the resulting petscfiles.txt
find $PETSC_DIR/$PETSC_ARCH > petscfiles.txt
Also, try to run cmake without sudo. It should not need the elevated privileges.
Finally, please remove the entire build directory to make sure that the cache is not messing with subsequent runs.