Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set YCM option YCM_DISABLE_SYSTEM_PACKAGES to ON #389

Merged
merged 1 commit into from
Apr 27, 2020
Merged

Conversation

traversaro
Copy link
Member

@traversaro traversaro commented Apr 26, 2020

During the past years, we experienced quite a lot of times that for some reason on a setup
the superbuild was finding its own installed packages, or finding the one of a similar superbuild
installed on another setup. As recovering from this kind of errors is tricky for users, and as
most of robotology-superbuild users do not need to find the packages installed by the superbuild in their system, the YCM_DISABLE_SYSTEM_PACKAGES option was introduced in YCM
( see robotology/ycm-cmake-modules#332 ) to disable the use of any system installed package if the same package can be installed by the superbuild (equivalent of setting all the USE_SYSTEM_ options to OFF).

This option is set by default to OFF on YCM for backward compatibility, but to avoid all the problems in the superbuild we set it to ON by default. If an expert user want to be able to find system-installed packages (for example because he has a system-installed YARP) he just need to set it at OFF.

The option is still not supported in the stable released version of YCM, so I will not update the README for now, but it will be already effective if a users specifies uses Unstable ROBOTOLOGY_PROJECT_TAGS, so for example it will be already useful for the iCubGenova01 setup @randaz81 @xEnVrE .

Related issues:

During the past years, we experienced quite a lot of times that for some reason on a setup 
the superbuild was finding its own installed packages, or finding the one of a similar superbuild 
installed on another setup. As recovering from this kind of errors is tricky for users, and as 
most of robotology-superbuild users do not need to find  the packages installed by the superbuild in 
their system, the YCM_DISABLE_SYSTEM_PACKAGES option was introduced in YCM 
( see robotology/ycm-cmake-modules#332 )  to disable the use of 
any system installed package if the same package can be installed by the superbuild (equivalent of setting 
all the USE_SYSTEM_<project> options to OFF). 

This option is set by default to `OFF` on YCM for backward compatibility, but to avoid all the problems in the superbuild
we set it to `ON` by default. If an expert user want to be able to find system-installed packages (for example because he has a 
system-installed YARP) he just need to set it at `ON`. 

The option is still not supported in the stable released version of YCM, so I will not update the README for now, but 
it will be already effective if a users specifies uses `Unstable` `ROBOTOLOGY_PROJECT_TAGS`, so for example it  will be 
already useful  for the iCubGenova01 setup @randaz81 @xEnVrE .

Related issues: 
* #121
* #174
@traversaro traversaro changed the title Set YCM option YCM_DISABLE_SYSTEM_PACKAGES to OFF Set YCM option YCM_DISABLE_SYSTEM_PACKAGES to ON Apr 26, 2020
@lrapetti
Copy link
Member

If an expert user want to be able to find system-installed packages (for example because he has a system-installed YARP) he just need to set it at ON.

Here you meant OFF right?

@traversaro
Copy link
Member Author

If an expert user want to be able to find system-installed packages (for example because he has a system-installed YARP) he just need to set it at ON.

Here you meant OFF right?

Yes, sorry for the typo, it should be fixed now.

@traversaro
Copy link
Member Author

@lrapetti if you think that this PR make sense, feel free to approve it, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants