mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
The rdkit-stubs CMakeLists builds a cmake script (RUN_GEN_RDKIT_STUBS_PY) that is later run via cmake -P. Every path embedded in that generated script is converted to forward slashes first (CMAKE_SOURCE_DIR, CMAKE_CURRENT_BINARY_DIR, PYTHON_INSTDIR) so the backslashes in native Windows paths don't get treated as escape sequences when the script is re-parsed. Python3_EXECUTABLE was the one path that wasn't converted, so on Windows the generated COMMAND line contained backslashes and failed to parse. Apply the same forward-slash conversion to it for consistency. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>