CMake kept picking up the binary from /usr/bin which belongs to Qt4 installation. Here we require CMake to use the binary from Qt5 installation that is being used.