cmake plugin for the asdf version manager.
This plugin will try to install an official binary release of CMake, but can also build and install from source if necessary or desired.
bash,curl,tar: generic POSIX utilities.- optional Qt installation if compiling from source and wanting
cmake-gui
Plugin:
asdf plugin add cmake https://github.com/amrox/asdf-cmake.gitcmake:
# Show all installable versions
asdf list-all cmake
# Install specific version
asdf install cmake latest
# Set a version globally (on your ~/.tool-versions file)
asdf global cmake latest
# Now cmake commands are available
cmake --versionCheck asdf readme for more instructions on how to install & manage versions.
Binary installations include cmake-gui by default.
If installing from source, and you have Qt installed on your machine you can get the cmake-gui program built by providing the path to the Qt binary directory in the QTBINDIR environment variable when invoking asdf install cmake.
For instance, on a Mac with Qt installed using brew that would be :
QTBINDIR=/usr/local/opt/qt/bin asdf install cmake
A few environment variables can affect this plugin:
ASDF_CMAKE_FORCE_SOURCE_INSTALL: Set to1to force a source-based installation instead of using a pre-compiled binary, even if a binary release is available.QTBINDIR: Set to your Qt installation to buildcmake-gui, if CMake is being built from source.
Contributions of any kind welcome! See the contributing guide.
Thanks goes to these contributors!
See LICENSE