I’m building an application based on Eclipse Theia and packaging it with the electron-builder in an AppImage file, on linux. Calling cmake from a terminal opened in this product shows an error, like in the example below:
% cmake --version CMake Error: Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly. Modules directory not found in cmake version 3.16.3
If I open a new shell in the same terminal, e.g. by calling
bash, the error is gone. This lead me to believe that cmake is somehow incorrectly initialized in the original shell, but I wasn’t able to identify the issue.
I only have one version of cmake installed (3.16.3) and I’m running on Ubuntu 20.04.3 LTS.
I would appreciate any hints at what cmake might be missing or what might not be correctly configured.