Build failed by git for window

Can you please take a look.

env:

Cesium for unity:1.12.0
bash:git for windows
unity 2021.3
cmake:3.26.3
dotnet:8.0

cmd

the cmd is:cmake -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo

error

the error is: Could NOT find Bash (missing: BASH_EXECUTABLE)


It seems likely that the issue that bash isn’t installed on your machine in a way that CMake knows how to access. Do you have bash in your PATH? If you open up a command prompt and type bash, does it run? If not, it’s worth adding the directory of bash.exe to your PATH environment variable.

Setting PATH environment variables doesn’t work either.

Just reinstall Git to the C drive

I don’t understand the meaning of this function, environment variables have no effect

Hi @luo,

We didn’t write that script; it’s part of a third-party library called KTX-Software. Here’s an issue someone has recently written against that library, and a maintainer has offered some suggestions. It may help you, too.

In my particular case, I have both Git for Windows and WSL2 installed, and have not run into this error. I’m not sure offhand what might be causing it for you.