Query: %cmake not doing out-of-tree builds?

Neal Gompa ngompa13 at gmail.com
Sun Oct 11 00:14:58 UTC 2015


On Sat, Oct 10, 2015 at 7:52 PM, Orion Poplawski <orion at cora.nwra.com>
wrote:

> On 10/10/2015 02:25 PM, Neal Gompa wrote:
>
>> Hello all,
>>
>> Over the last few weeks, I've been working on a number of packages that
>> use CMake for the build system for various distros, and I've noticed
>> something rather peculiar. Of all the distros I've built packages for
>> (Fedora/CentOS, openSUSE, Mageia, Debian, and Ubuntu), only
>> Fedora/CentOS does not automatically do CMake building in a subdirectory
>> such that the build artifacts don't mix in with the source tree.
>> Essentially, the %cmake macro doesn't enforce builds are out-of-tree.
>>
>> Is there a particular reason for this?
>>
>
> Freedom, baby!
>
> But you certainly can do it if you want:
>
> mkdir build
> cd build
> %cmake ..
>
> Which I do think should be pretty much the standard.
>
> --
> Orion Poplawski
> Technical Manager                     303-415-9701 x222
> NWRA/CoRA Division                    FAX: 303-415-9702
> 3380 Mitchell Lane                  orion at cora.nwra.com
> Boulder, CO 80301              http://www.cora.nwra.com
>
>
​I pretty much wound up doing that, but I wanted to know if there was a
reason for not having it built into the macro like Mageia and SUSE do.​




-- 
真実はいつも一つ!/ Always, there's only one truth!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20151010/120a93b1/attachment.html>


More information about the devel mailing list