CMake temporary directory
Creating a unique temporary directory is not completely trivial. Despite the POSIX standard, some CIs (e.g. GitHub Actions) and Unix-like operating systems (e.g. RHEL) do not define the environment variables “TMPDIR” or “TEMP” for temporary directory.
Caveat: virus scanners can false detect activity in the system temporary directory as malicious.
Create a temporary directory in CMake: