[Rock-dev] New ROCK_CMAKE_MACROS environment variable

Sylvain Joyeux sylvain.joyeux at dfki.de
Thu Apr 14 15:09:51 CEST 2011


As discusses on the ML a while back, the current

   include(Rock)

is not ideal as it makes running cmake outside of autoproj pretty hard 
(one has to give a -DCMAKE_MODULE_PATH=/path/to/rock/macros to every 
cmake call).

The proposed change was to use an environment variable and change the 
CMake template to do

   include($ENV{ROCK_CMAKE_MACROS}/Rock.cmake)

I just did that, while keeping backward compatibility for now.

I modified:
   rock.base autoproj configuration to define ROCK_CMAKE_MACROS
   base/types/cmake/Rock.cmake to add ROCK_CMAKE_MACROS to CMake's
     module path
   the cmake-lib template to use the new include() statement.
-- 
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