The CMake package contains a modern toolset used for generating Makefiles. It is a successor of the auto-generated configure script and aims to be platform- and compiler-independent. A significant user of CMake is KDE since version 4.
This package is known to build and work properly using an LFS-10.0 platform.
Download (HTTP): https://cmake.org/files/v3.18/cmake-3.18.1.tar.gz
Download MD5 sum: bc0d668dba6ec081c664ae95b75540d6
Download size: 8.6 MB
Estimated disk space required: 348 MB (add 634 MB for tests)
Estimated build time: 3.2 SBU (add 3.3 SBU for tests, both using parallelism=4)
cURL-7.71.1, libarchive-3.4.3, and nghttp2-1.41.0
git-2.28.0 (for use during tests), Qt-5.15.0 (for the Qt-based GUI), Subversion-1.14.0 (for testing), and Sphinx (for building documents)
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/cmake
Install CMake by running the following commands:
sed -i '/"lib64"/s/64//' Modules/GNUInstallDirs.cmake &&
./bootstrap --prefix=/usr        \
            --system-libs        \
            --mandir=/share/man  \
            --no-system-jsoncpp  \
            --no-system-librhash \
            --docdir=/share/doc/cmake-3.18.1 &&
make
        
          To test the results, issue: bin/ctest
          -j<N> -O
          cmake-3.18.1-test.log, where <N> is an integer between 1
          and the number of system cores. In case the environment variable
          LANG is set to a non-blank value and
          failures occur, try running the tests without having LANG set.
        
          Now, as the root user:
        
make install
sed ... Modules/GNUInstallDirs.cmake: This command disables applications using cmake from attempting to install files in /usr/lib64/.
          --system-libs: This switch
          forces the build system to link against Zlib, Bzip2,
          cURL, nghttp2, Expat and libarchive installed on the system.
        
          --no-system-jsoncpp: This
          switch removes the JSON-C++
          library from the list of system libraries. A bundled version of
          that library is used instead.
        
          --qt-gui: This switch enables building
          of the Qt-based GUI for
          CMake.
        
          --parallel=: This switch enables
          performing the CMake bootstrap
          with multiple jobs at one time.
        
Last updated on 2020-08-16 13:56:58 -0700