Gentoo Archives: gentoo-user

From: tastytea <gentoo@××××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to cmake?
Date: Thu, 26 Aug 2021 16:28:38
Message-Id: 20210826182817.3c093fd4@ventiloplattform.tastytea.de
In Reply to: Re: [gentoo-user] How to cmake? by Peter Humphrey
1 On 2021-08-26 15:59+0100 Peter Humphrey <peter@××××××××××××.uk> wrote:
2
3 > On Thursday, 26 August 2021 15:39:53 BST tastytea wrote:
4 >
5 > > Don't run cmake in src/, run it in the directory src is in.
6 >
7 > I have been doing so.
8 >
9 > --->8
10 >
11 > > # This configures the build (checks for dependencies and so on)
12 > > cmake -S . -B build
13 > > # This compiles the sources
14 > > cmake --build build
15 > >
16 > > The binary is in ./build/src/kdfm – you can install it globally with
17 > > sudo cmake --install build
18 >
19 > Excellent! Many thanks, kind Sir!
20
21 You're welcome. 😊
22
23 > Aside: how much training and experience would be needed to reach that
24 > level of competence?
25
26 It's really easy… if you're a programmer who uses cmake every day. 😄
27 I would expect projects to put this info into the readme file (and most
28 do), but apparently they didn't think that users might want to compile
29 it? 🙄
30
31 --
32 Get my PGP key with `gpg --locate-keys tastytea@××××××××.de` or at
33 <https://tastytea.de/tastytea.asc>.