Cmake not found

I am a newbie in pytorch and as I was installing it in an amd64 fedora 25, I got this error:
[root@aries pytorch]# python setup.py install
running install
running build_deps
torch/lib/build_libs.sh: line 147: cmake: command not found

What can I do to solve this?
I have cloned from github and at the installer folder I have issued the command python setup.py install.
By the way I am tryint to run it without CUDA.

Did you install cmake? It is one of the dependencies as listed here https://github.com/pytorch/pytorch#install-optional-dependencies

Thank you, Excuse me for my silly question.
I guessed It was already installed. I am doing it now. It is working,
Thank you SimonW.