mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
The %f specified extends the string(TIMESTAMP) and file(TIMESTAMP) commands to output the timestamp with a microsecond resolution. This convention is offered by python's datetime module. Before, the precision was limited to seconds. The implementation is done by extending existing cmTimestamp methods with a `microseconds` parameter. This parameter is optional in order to be backwards compatible. The timestamps are now received in a cross-platform manner using libuv, since the standard C functions like time() don't allow for sub-second precision. This requires libuv 1.28 or higher. We already require higher than that on Windows, so update the required version for other platforms. Implements: #19335
6 lines
175 B
ReStructuredText
6 lines
175 B
ReStructuredText
timestamp-microseconds
|
|
----------------------
|
|
|
|
* The :command:`string(TIMESTAMP)` and :command:`file(TIMESTAMP)` commands now
|
|
support the ``%f`` specifier for microseconds.
|