Am Donnerstag, den 17.01.2019, 23:58 +0000 schrieb Ankur Sinha:
> On Thu, Jan 17, 2019 16:41:42 -0700, Orion Poplawski wrote:
> > On 1/17/19 7:08 AM, Ankur Sinha wrote:
> > Just pass the extra options to %cmake.  But be sure to use "%cmake"
> > and not
> > "%{cmake}".  See
> > https://src.fedoraproject.org/rpms/vtk/blob/master/f/vtk.spec#_675
> > for example.
> 
> OK--that's slightly simpler, but now I have another query:
> 
> Not all of them are "extra" options. Some of the options included in
> the
> %cmake macro must be changed. Is this documented cmake behaviour that
> options defined later in the argument list will overwrite the earlier
> defined ones? Or is this something that "works" now but isn't
> documented
> as correct/suggested usage?
> 
> For example, as you've done here:
> https://src.fedoraproject.org/rpms/vtk/blob/master/f/vtk.spec#_692


It is not explicitly documented anywhere AFAIK, but it works. 
Specifying -DVAR=VALUE for the same VAR will use the last definition.

To be safe with future changes in that behaviour, you can do the
following as well:  -UVAR -DVAR=NEW_VALUE.

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to