cmake-easyinstall

cmake-easyinstall git+https://github.com/org/repo.git

BSD-2-CLAUSE License

Stars
25

cmake-easyinstall Supported Platforms License: BSD-2-Clause

Install CMake projects as simple as:

cmake-easyinstall git+https://github.com/org/repo.git

Install

curl -L -o cmake-easyinstall https://git.io/JvLxY
chmod a+x cmake-easyinstall

Usage

cmake-easyinstall [--prefix=<dir>] git+<https-url>.git[@branch] [cmake-options]

Environment Options

Just export CEI_<option>=<value> to change some defaults:

  • CEI_CMAKE: path or alias for the cmake command (default: cmake)
  • CEI_CONFIG: the build configuration (default: RelWithDebInfo)
  • CEI_PARALLEL: maximum number of concurrent build processes (default: 2)
  • CEI_PREFIX: installation prefix (default: CMake default)
  • CEI_SUDO: set to "sudo" for privileged installation (default: "")
  • CEI_TMP: build in a unique or fixed-location directory (default: a unique mktemp directory)

Command Line Options

  • --prefix=<dir>: installation prefix (default: CMake default)

Note: cmake-options take precedence over --prefix takes precedence over environment options.

Dependencies