mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-22 05:09:24 +01:00
85 lines
2.4 KiB
XML
85 lines
2.4 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
%general-entities;
|
|
]>
|
|
|
|
<sect1 id="ch-tools-cmake" role="wrap">
|
|
<?dbhtml filename="cmake.html"?>
|
|
|
|
<sect1info condition="script">
|
|
<productname>cmake</productname>
|
|
<productnumber>&cmake-version;</productnumber>
|
|
<address>&cmake-url;</address>
|
|
</sect1info>
|
|
|
|
<title>CMake-&cmake-version;</title>
|
|
|
|
<indexterm zone="ch-tools-cmake">
|
|
<primary sortas="a-CMake">CMake</primary>
|
|
<secondary>tools</secondary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title/>
|
|
|
|
<para>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 LLVM.</para>
|
|
|
|
<segmentedlist>
|
|
<segtitle>&buildtime;</segtitle>
|
|
<segtitle>&diskspace;</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>&cmake-tmp-sbu;</seg>
|
|
<seg>&cmake-tmp-du;</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of CMake</title>
|
|
|
|
<para>Prevents applications using CMake from attempting to install files
|
|
into <filename class='directory'>lib64</filename>:</para>
|
|
|
|
<screen><userinput remap="pre">sed -i '/"lib64"/s/64//' Modules/GNUInstallDirs.cmake</userinput></screen>
|
|
|
|
<para>Prepare CMake for compilation:</para>
|
|
|
|
<screen><userinput remap="configure">./bootstrap --prefix=$LFS/tools --no-system-libs</userinput></screen>
|
|
|
|
<variablelist>
|
|
<title>The meaning of the configure options:</title>
|
|
|
|
<varlistentry>
|
|
<term><parameter>--no-system-libs</parameter></term>
|
|
<listitem>
|
|
<para>For several libraries, use the source code shipped in the CMake source tarball instead of the system library. This avoids
|
|
unnecessary host system requirements.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
|
|
<para>Compile CMake by running:</para>
|
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
|
|
|
<para>Install the package:</para>
|
|
|
|
<screen><userinput remap="install">make install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title/>
|
|
|
|
<para>Details on this package are located in TODO.</para>
|
|
</sect2>
|
|
|
|
</sect1>
|