For relatively recent versions of CMake (>=2.8.11):
string(TIMESTAMP {output variable} [{format string}] [UTC])
(see http://www.cmake.org/cmake/help/v3.0/command/string.html). For example:
string(TIMESTAMP TODAY "%Y%m%d")
For relatively recent versions of CMake (>=2.8.11):
string(TIMESTAMP {output variable} [{format string}] [UTC])
(see http://www.cmake.org/cmake/help/v3.0/command/string.html). For example:
string(TIMESTAMP TODAY "%Y%m%d")