idyntree: Master branch causes configuration failures of packages depending on model_io on Windows

When trying to compile the robotology-superbuild, several packages that depend on model_io fail to configure with the error:

40>CMake Error in src/RetargetingHelper/CMakeLists.txt:
40>  Imported target "iDynTree::idyntree-modelio-xml" includes non-existent path
40>
40>    "C:/robotology-superbuild/robotology/iDynTree/src/model_io/xml/include/private"
40>
40>  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:
40>
40>  * The path was deleted, renamed, or moved to another location.
40>
40>  * An install or uninstall procedure did not complete successfully.
40>
40>  * The installation package was faulty and references files it does not
40>  provide.

I am trying to compile on Windows 10 using Visual Studio 16 2019 Here a portion of the log (the initial part got cut by Visual Studio) superbuild-error.txt

Note that iDynTree is compiling correctly. I also tried removing the install folder.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 19 (19 by maintainers)

Commits related to this issue

Most upvoted comments

I think these are the interesting lines:

CMake Debug Log at C:/vcpkg/scripts/buildsystems/vcpkg.cmake:439 (_find_package):
  find_package considered the following paths for iDynTree.cmake

    C:/robotology-superbuild/robotology/UnicyclePlanner/cmake/FindiDynTree.cmake
    C:/Program Files/CMake/share/cmake-3.18/Modules/FindiDynTree.cmake

  The file was not found.

    C:/robotology-superbuild/build/robotology/iDynTree/iDynTreeConfig.cmake

Call Stack (most recent call first):
  CMakeLists.txt:55 (find_package)

All the rest seems to be generated by calls from within C:/robotology-superbuild/build/robotology/iDynTree/iDynTreeConfig.cmake, but I have no idea on how it found the C:/robotology-superbuild/build/robotology/iDynTree/iDynTreeConfig.cmake file in the first place.