Building a newer version of CMake yourself is pretty simple, especially with bootstrapping (using an older version of CMake to build the never version).
- Place this
CMakeLists.txt
file in a dedicatedCMake
folder. - In this folder, create a
build
folder and from within it runcmake .. && cmake --build .
- Your new version of CMake will be installed into
install
, so you can addinstall/bin
to your PATH - To upgrade again, delete the
install
folder and in thebuild
folder runcmake --build .
again - When
install/bin
is in your PATH, check the version of CMake withcmake --version
- Use your upgraded CMake to modernize your existing CMake projects and build other people's projects that require it
- Share this script to make other people's lives easier - nobody likes using outdated software