cmake -E env fails to execute command with equals sign in path
We discovered a little weird issue when running cmake on CI server, where the build directory was named with equals sign (automatically generated from the parameters given to cmake). Our cmake uses
cmake -E env like this:
$ cmake -E env TEST=A /my/path/with=/tool cmake -E env: no command given
However, even the
/my/path/with=/tool is considered an environment variable and thus the no command given response from cmake. In bash, I would put -- after the last variable to let env know the rest are regular arguments, but there appears no way to do that with
We have a workaround, though I still consider it a bug. Can we gave an additional parameter to env to support this natively?