• Jose-Luis Blanco-Claraco's avatar
    string(TIMESTAMP): Fix unset TZ · f23760ff
    Jose-Luis Blanco-Claraco authored
    The logic added by commit v3.6.0-rc1~338^2 (CMake: Extend TIMESTAMP
    sub-commands with new unix time format specifier, 2016-02-16) to restore
    the `TZ` environment variable does not properly handle the case in which
    the variable was originally not set.  Unset the variable in this case.
    
    Fixes: #18431
    f23760ff
cmTimestamp.cxx 4.66 KB