[arch-general] Is out of source building still recommended with cmake in PKGBUILD scripts
Paul Gideon Dann
pdgiddie at gmail.com
Wed Jan 15 04:58:05 EST 2014
On Tuesday 14 Jan 2014 23:17:53 Maxime Gauduin wrote:
> It is indeed no longer required with VCS sources, and has never been with
> tarballs since those are extracted every time you run makepkg so files you
> might have changed are overwritten anyway. However I sometimes find useful
> to keep doing that with cmake when you need to figure out why sth won't
> build, because that way files generated by cmake at build time are in a
> separate dir.
Mmm, bear in mind that most cmake projects won't be tested with in-source builds.
It's possible they might break. One possible scenario: files intended to be
generated in the build directory could potentially match files that exist in the
source directory (although that wouldn't be great practice), and bad things would
then happen.
Paul
More information about the arch-general
mailing list