If you did 'sudo cmake', you should now do 'sudo make' as well.
Sudo runs the command as root, so the directories created are owned by root. If you are not root, you get a permission denied when you want to write to it.
Sudo runs the command as root, so the directories created are owned by root. If you are not root, you get a permission denied when you want to write to it.