ycm-cmake-modules
ycm-cmake-modules copied to clipboard
Use case: build already downloaded superbuild without network connection
Probably related to https://github.com/robotology/ycm/issues/58 , but I open the issue to state the user case clearly.
If the user has an already downloaded superbuild repository, and wants to compile it off-line, the make
or make subproject
commands fail with the following error:
-- YCM not found. Bootstrapping it.
-- Downloading YCMEPHelper.cmake
-- Downloading YCMEPHelper.cmake - ERROR 6: "Couldn't resolve host name"
CMake Error at cmake/YCMBootstrap.cmake:87 (ycm_bootstrap):
Unknown CMake command "ycm_bootstrap".
Call Stack (most recent call first):
CMakeLists.txt:27 (include)
A typical example of this use case is if someone is programming while commuting on a train.
A workaround that I found is to call make
and make install
in all the build directories of the modifed subprojects. Another workaround is to use a installed YCM instead of a bootstrapped one.
About installing YCM, you have to be careful of installing it again each time it gets updated. If using YCM inside a superbuild, it means that each time you do an update of the whole superbuild 'someone' should check if the YCM has changed and install it again.
Related to the issue you are experiencing today @gabrielenava .