summaryrefslogtreecommitdiffstats
path: root/Source/cmConvertMSBuildXMLToJSON.py
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2024-07-18 11:50:46 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2024-07-18 11:50:46 (GMT)
commitab26d334bfa74871095239a53a6c7af92bdbacdf (patch)
treefc62550d1b2160d4d31e3e795a6a41917eab064a /Source/cmConvertMSBuildXMLToJSON.py
parent3b2ef9b54ca91ed9e0be2680558021b3d000a2ea (diff)
downloadCMake-ab26d334bfa74871095239a53a6c7af92bdbacdf.zip
CMake-ab26d334bfa74871095239a53a6c7af92bdbacdf.tar.gz
CMake-ab26d334bfa74871095239a53a6c7af92bdbacdf.tar.bz2
cmCPackExternalGenerator: ensure JSON is written before running the script
First, use `cmGeneratedFileStream` to avoid touching an existing file unless its contents change and to get atomic replacement. Also add a scope to ensure that the file is in place (at `fout`'s destructor) before doing anything with the packaging scripts. See: https://discourse.cmake.org/t/1773
Diffstat (limited to 'Source/cmConvertMSBuildXMLToJSON.py')
0 files changed, 0 insertions, 0 deletions