On Tue, Aug 4, 2020 at 3:12 PM Neal Gompa <ngompa13(a)gmail.com> wrote:
On Tue, Aug 4, 2020 at 9:10 AM Richard Shaw
<hobbes1069(a)gmail.com> wrote:
> On Tue, Aug 4, 2020 at 6:17 AM Michal Schorm <mschorm(a)redhat.com> wrote:
>>
>> Since this change, all (subsequent) CMake commands (after "%cmake")
>> MUST be used with the builddir argument ( "-B %{__cmake_builddir}" ).
>
> Ok, I'll use that in the future, but it still needs a mention in the guidelines
:)
>
You are not supposed to use %__cmake_builddir.
You say I'm not supposed to use that macro, but that's exactly the macro I need.
That macro only exists
so we don't have to mutate %_vpath_builddir when switching behaviors
through %__cmake_in_source_build.
Any other way would do exactly what you just wrote here - I would be
re-implementing this macro - which doesn't make sense.
I'm open to new ideas, but this (using the "%__cmake_builddir" )
sounds like the most straightforward and easy way to do it.
--
Michal Schorm
Software Engineer
Core Services - Databases Team
Red Hat