mirror of
https://github.com/Kitware/CMake.git
synced 2026-06-24 08:47:59 +00:00
Help: Use POSIX slashes for 'generated by' in presets files
This commit is contained in:
@@ -31,11 +31,12 @@ SCHEMA_YAML_FILENAME = 'schema.yaml'
|
||||
SCHEMA_JSON_FILENAME = 'schema.json'
|
||||
|
||||
WORKSPACE = Path(__file__).parent.parent.parent.absolute()
|
||||
SCRIPT_REL = Path(__file__).relative_to(WORKSPACE)
|
||||
PRESETS = WORKSPACE / PRESETS_REL
|
||||
DIAGNOSTICS = WORKSPACE / 'Source/cmDiagnostics.h'
|
||||
|
||||
RST_BANNER = f"""\
|
||||
.. This file was generated by {Path(__file__).relative_to(WORKSPACE)}
|
||||
.. This file was generated by {SCRIPT_REL.as_posix()}
|
||||
from {PRESETS_REL}/{SCHEMA_YAML_FILENAME}. Do not edit.
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user