summaryrefslogtreecommitdiffstats
path: root/Source/CMakeVersion.bash
diff options
context:
space:
mode:
authorMatthew Woehlke <matthew.woehlke@kitware.com>2022-08-17 18:20:47 (GMT)
committerMatthew Woehlke <matthew.woehlke@kitware.com>2022-09-05 17:19:58 (GMT)
commitd1befe5515968d7fe4f7fd3f2ca243e98d6012d0 (patch)
treef60ecc3aced197ff90d2d2d2d3705cd3178818a1 /Source/CMakeVersion.bash
parent7b9757e50715ab6abc08e7005c66565f5c965de3 (diff)
downloadCMake-d1befe5515968d7fe4f7fd3f2ca243e98d6012d0.zip
CMake-d1befe5515968d7fe4f7fd3f2ca243e98d6012d0.tar.gz
CMake-d1befe5515968d7fe4f7fd3f2ca243e98d6012d0.tar.bz2
cmSystemTools: Add MakeTempDirectory
Add a cross-platform wrapper over mkdtemp. This will allow us to create guaranteed-unique directories. On POSIX platforms, this is simply a wrapper over mkdtemp. On Windows, we take a brute-force approach using C++11's random facilities and relying on attempts to create an existing directory resulting in an error. (This approach is very possibly how mkdtemp is implemented internally, and should be suitable for any platform if needed, although at present it only uses a partial set of substitution characters since Windows likely implies a case-insensitive file system.)
Diffstat (limited to 'Source/CMakeVersion.bash')
0 files changed, 0 insertions, 0 deletions