On Sun, Aug 30, 2015 at 11:32 AM, Simon Kitching <[email protected]> wrote:
>
> I started writing such a document as a hint, but it feels to me a little
> too large for that format. I've therefore put the completed document up on
> my website. If you think it is of any use, then you are welcome to take
> that and host it on the LFS site if you wish, and welcome to make any
> changes you feel necessary. The document is currently licenced under
> cc-by-sa, but I'm happy to dual-licence it to the gnu licence if you wish.
> Or you could link to the original, but I presume you'll want to make
> changes.


Some projects use cmake rather than make. The principle is the same, but
cmake is powerful enough that the “configure” step is not needed. See the
project’s documentation for instructions on how to build.

That seems a bit misleading - I'd rather say that running cmake does the
"configure" step and then make does the "build" step.

Maybe it might also be useful to include a simple example like the
autotools example:

# unpack and read documentation
tar xf filename
cd {directory created by above step}
less README
less INSTALL

# generate customised makefile
cmake -DCMAKE_BUILD_TYPE=Release {some options}

# compile everything in the local directory
make

# update global directories
sudo make install

(I included -DCMAKE_BUILD_TYPE=Release because not all CMake projects will
necessarily include a sane default value for CMAKE_BUILD_TYPE, and without
that, it will just build with neither -g nor -O*.)
-- 
Daniel Schepler
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to