Make sure that private dependencies are correctly found in iDynTreeConfig.cmake when compiling as a static library #642
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added find_dependency(OsqpEigen) and find_dependency(LibXml2) when iDynTree is compiled as a static library, fixing the use of iDynTree on Windows.
To reduce the possible unexpected problems, the automatic set of the
IDYNTREE_USES_<pkg>
CMake variable when the<pkg>
CMake package is available in the system hasbeen removed for Irrlicht and WORHP, as it was already disabled for ASSIMP and ALGLIB.
To use this dependencies it is now compulsory to set manually the
IDYNTREE_USES_<pkg>
variable toON
.This is an hotfix for the problem reported in robotology/unicycle-footstep-planner#33, but the problem has been fixed just for the dependencies that ship their own CMake config files, and so that can be found with
find_dependency(<pkg>)
without problems. Fixing the problem for libraries without cmake config files, such as IPOPT, is a bit more complex, as theFindIpopt.cmake
file needs to be installed, andiDynTreeConfig.cmake
fille need to be equipped with logic to load it (temporarly) in the CMAKE_CONFIG_PATH to ensure thatfind_dependency(IPOPT)
will work as expected. For this reason, this is left to a future PR.