Closed metab0t closed 2 weeks ago
The path of Python executable should be converted to cmake-style path to avoid invalid escape sequence.
Otherwise, NB_STUBGEN_CMD may contain string like D:\mambaforge\python.exe on Windows and will make this line writes incorrect string: https://github.com/wjakob/nanobind/blob/c5ae2a36a704c1c62da99a81fad919261a3e9848/cmake/nanobind-config.cmake#L446
NB_STUBGEN_CMD
D:\mambaforge\python.exe
Thanks!
The path of Python executable should be converted to cmake-style path to avoid invalid escape sequence.
Otherwise,
NB_STUBGEN_CMD
may contain string likeD:\mambaforge\python.exe
on Windows and will make this line writes incorrect string: https://github.com/wjakob/nanobind/blob/c5ae2a36a704c1c62da99a81fad919261a3e9848/cmake/nanobind-config.cmake#L446