Elektron-SDK-1.2.1 : CMake Error at CMake/setBinaryEnvironment.cmake:208 (string): string no outpu

I am building Elektron-SDK v1.2.1 c++
cmake version : 3.12.2
os : Red Hat Enterprise Linux Server release 7.5 (Maipo)

I am getting the following error while executiong cmake -H. -Bbuild

CMake Error at CMake/setBinaryEnvironment.cmake:208 (string): string no output variable specified

CMake Error at CMake/setBinaryEnvironment.cmake:227 (string): string sub-command REGEX, mode MATCH needs at least 5 arguments total to command.

Best Answer

  • This error happens when lsb_release isn't installed on the machine. Can you please install this with:

    yum install redhat-lsb

    That should install the lsb_release command, and the cmake scripts should work.