ERROR: CMake must be installed to build dlib in Python

I got this following error at runtime "ERROR: CMake must be installed to build dlib". To resolve this install cmake package.

CMD: pip install cmake