如何安装CMAKE

How to install CMAKE

我是 Linux 的新手,我正在尝试安装 CMAKE,但出现此错误。如何解决这个问题:

dania@dania:~/sz/lin/build$ cmake .. -D CMAKE_INSTALL_PREFIX:PATH=[INSTALL_DIR] CMake Error: The source directory "/home/dania/sz/lin/build/CMAKE_INSTALL_PREFIX:PATH=[INSTALL_DIR]" does not exist. Specify --help for usage, or press the help button on the CMake GUI.

要在所有当前支持的 Debian 版本中安装 cmake cross-platform、open-source make system 打开终端并输入:

sudo apt install cmake