[Rock-dev] override cmake packages

Sylvain Joyeux sylvain.joyeux at dfki.de
Tue Jul 9 10:34:18 CEST 2013


On 07/08/2013 07:22 PM, Sascha Arnold wrote:
>
> Hi,
> I need to override two packages in the spacebot package set normally
> provided in the rock package set.
>
> I already overrode them in the source.yml and also applied own patches.
> So far it works, but then it won't apply the flags defined in
> cmake_package in libs.autobuild witch are still defined in rock.
> And if I redefine them in the libs.autobuild of the spacebot package
> set I get the message that I have two definitions and that the one
> from rock will be used.
>
 - if you only want to override the source information, you do not need
to redefine the package in spacebot's autobuild files. Simply add the
updated source information in the overrides: section of source.yml
 - if you do want to change how the package is configured, you should
use setup_package

setup_package 'package_name' do |pkg|
  # Do stuff here
end

This will allow you to modify the original configuration. You should
redefine the package using cmake_package, ... only if you want to
completely replace the configuration.

-- 
Sylvain Joyeux (Dr.Ing.)
Senior Researcher

Space & Security Robotics
Underwater Robotics

!!! Achtung, neue Telefonnummer!!!

Standort Bremen:
DFKI GmbH
Robotics Innovation Center
Robert-Hooke-Straße 5
28359 Bremen, Germany

Phone: +49 (0)421 178-454136
Fax:   +49 (0)421 218-454150
E-Mail: robotik at dfki.de

Weitere Informationen: http://www.dfki.de/robotik
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
(Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.:    DE 148646973
Steuernummer:  19/673/0060/3
----------------------------------------------------------------------- 

-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: http://www.dfki.de/pipermail/rock-dev/attachments/20130709/4c230ba0/attachment-0001.htm 


More information about the Rock-dev mailing list