I faced the same problem and I solved it by installing CMake directly (I couldn't license transfer from Windows to UNIX build machine).
Here is the command to install using sdkmanager :
sdkmanager "cmake;3.6.3155560"
Get the list of available packages by:
sdkmanager --list