YARP 2.4 Migration

From Wiki for iCub and Friends
Revision as of 10:38, 8 November 2013 by Daniele.Domenichelli@iit.it (talk | contribs) (Created page with "{{Under_construction}} Migrating from YARP 2.3 to YARP 2.4 might require some changes to your code. == List of incompatible changes == This is a list of incompatible change...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Migrating from YARP 2.3 to YARP 2.4 might require some changes to your code.

List of incompatible changes

This is a list of incompatible changes from YARP 2.3 series to YARP 2.4

CMake

YARP_MODULE_PATH

cmake variable YARP_MODULE_PATH is a real "PATH" and therefore could be a list and not a single directory. This might break in a few cases (i.e. when used in include(${YARP_MODULE_PATH}/something.cmake)) There are 2 options to fix this:

  • Use the variable YARP_MODULE_DIR instead of YARP_MODULE_PATH:
    include(${YARP_MODULE_DIR}/something.cmake)
  • Add YARP_MODULE_PATH to the CMAKE_MODULE_PATH variable and use the filename without the path and the extension :
    set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${YARP_MODULE_PATH})
    include(something)

C++