Re: CMake help: "install TARGETS given no LIBRARY DESTINATION for shared library target"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux