Closed traversaro closed 2 years ago
I tested locally in a WSL2 instance, and this PR reduce the CMake configuration from 42 seconds (top) to 12 seconds (bottom):
The test in https://github.com/robotology/robotology-superbuild/pull/1093 were successful.
In FindOrBuildPackage a preliminary
find_package
is run to decide if it make sense to provide to the user theUSE_SYSTEM_${_PKG}
option. However ifYCM_DISABLE_SYSTEM_PACKAGES
is ON, theUSE_SYSTEM_${_PKG}
option is already disabled, so we can skip thefind_package
calls.This change should dramatically reduce the CMake configuration for superbuilds in which
YCM_DISABLE_SYSTEM_PACKAGES
is ON and that have many subpackages.