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.txtfile in a dedicatedCMakefolder. - In this folder, create a
buildfolder and from within it runcmake .. && cmake --build . - Your new version of CMake will be installed into
install, so you can addinstall/binto your PATH - To upgrade again, delete the
installfolder and in thebuildfolder runcmake --build .again - When
install/binis 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