[Rock-dev] What to avoid using two boost installations

Stefan Haase stefan.haase at dfki.de
Fri Apr 5 16:13:40 CEST 2013


Hi,

just a comment about two boost installations, because I always fight with
that again.
If you have two boost installations (in my case 1.46 in /usr and 1.5 in
/opt/software/external) the headers and the libs may become mixed.

For example, instead of

find_package( Boost COMPONENTS thread)
rock_library(iodrivers_base
    DEPS_CMAKE Boost
    or
    DEPS_PLAIN Boost
)

do this

find_package( Boost COMPONENTS thread)
rock_library(iodrivers_base
    LIBS ${Boost_THREAD_LIBRARY}
    or
    DEPS_PLAIN ${Boost_THREAD_LIBRARY}
    or
    DEPS_PLAIN Boost_THREAD_LIBRARY
)

Best regrads,
Stefan

-- 
 Dipl.-Inf. Stefan Haase
 Space Robotics and Animation

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

 Phone: +49 (0)421 178 45-4108
 Fax:   +49 (0)421 178 45-4150
 E-Mail: Stefan.Haase 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/20130405/ae4e690a/attachment.htm 


More information about the Rock-dev mailing list