Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Update required iDynTree version #287

Closed
@GiulioRomualdi

Description

Since the iDynTree 1.0.0 has been released
The required minimum version of iDynTree has been updated. This is required by COMPATIBILITY SameMajorVersion

install_basic_package_files(iDynTree VARS_PREFIX ${VARS_PREFIX}
                                     VERSION ${${VARS_PREFIX}_VERSION}
                                     COMPATIBILITY SameMajorVersion
                                     TARGETS_PROPERTY ${VARS_PREFIX}_TARGETS
                                     NO_CHECK_REQUIRED_COMPONENTS_MACRO
                                     ENABLE_COMPATIBILITY_VARS
                                     DEPENDENCIES ${_IDYNTREE_EXPORTED_DEPENDENCIES})

In the main iDynTree CMakeLists.txt file

Indeed when I try to compile the library I got the following error

loSince the `iDynTree 1.0.0` has been [released](https://github.com/robotology/idyntree/releases/tag/v1.0.0) 
The required minimum version of iDynTree has been updated. This is required by `COMPATIBILITY SameMajorVersion` 
```cmake 
install_basic_package_files(iDynTree VARS_PREFIX ${VARS_PREFIX}
                                     VERSION ${${VARS_PREFIX}_VERSION}
                                     COMPATIBILITY SameMajorVersion
                                     TARGETS_PROPERTY ${VARS_PREFIX}_TARGETS
                                     NO_CHECK_REQUIRED_COMPONENTS_MACRO
                                     ENABLE_COMPATIBILITY_VARS
                                     DEPENDENCIES ${_IDYNTREE_EXPORTED_DEPENDENCIES})

In the main iDynTree CMakeLists.txt file

Indeed when I try to compile the library I got the following error

loading initial cache file /home/gromualdi/robot-code/robotology-superbuild/build/robotology/WBToolbox/CMakeFiles/YCMTmp/WBToolbox-cache-Release.cmake
-- Found YCM: /home/gromualdi/robot-code/robotology-superbuild/build/install/lib/cmake/YCM (found version "0.11.0.1-20191204+gitad8bb25")
-- Found YARP: /home/gromualdi/robot-code/robotology-superbuild/build/install/lib/cmake/YARP (found version "3.3.0+27-20200110.2+git5fbea1e6e")
CMake Error at CMakeLists.txt:35 (find_package):
  Could not find a configuration file for package "iDynTree" that is
  compatible with requested version "0.7.2".

  The following configuration files were considered but not accepted:

    /home/gromualdi/robot-code/robotology-superbuild/build/install/lib/cmake/iDynTree/iDynTreeConfig.cmake, version: 1.0.0
    /home/gromualdi/robot-code/robotology-superbuild/build/robotology/iDynTree/iDynTreeConfig.cmake, version: 1.0.0

Related to:

@traversaro

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions