[Rock-dev] Rock News: managing the CMAKE_BUILD_TYPE through tags

Sylvain Joyeux sylvain.joyeux at dfki.de
Mon May 16 17:17:59 CEST 2011


This is not really news, but I thought that I could (read: should have) 
share it with the crowd.

The overrides.rb file in rock.base has a bit of code that sets up 
CMAKE_BUILD_TYPE based on tags that are set in the packages manifest.xml.

The tags are defined as a comma-separated field in a <tags></tags> XML 
element. For instance,

   <tags>stable</tags>

The following tags have an effect on the CMAKE_BUILD_TYPE for CMake 
packages:

   stable: build in Release mode
   needs_opt: build in RelWithDebInfo mode

If none of the two above are given, it is built in Debug mode.
-- 
Sylvain Joyeux (Dr.Ing.)
Space & Security 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
-----------------------------------------------------------------------


More information about the Rock-dev mailing list