External, Non-PPA KXStudio Repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
655B

  1. Author: Vagrant Cascadian <vagrant@reproducible-builds.org>
  2. Description: Use UTC timezone for build timestamp
  3. While CMake respects SOURCE_DATE_EPOCH, it still can produce a
  4. different date depending on the timezone of the running system.
  5. Specify timezone in UTC to enable a reproducible build.
  6. --- a/CMakeLists.txt
  7. +++ b/CMakeLists.txt
  8. @@ -49,7 +49,7 @@
  9. set(GENERATOR_IS_MULTI_CONFIG TRUE)
  10. endif()
  11. -string(TIMESTAMP DEFAULT_BUILD "%Y%m%d")
  12. +string(TIMESTAMP DEFAULT_BUILD "%Y%m%d" UTC)
  13. set(BUILD ${DEFAULT_BUILD} CACHE STRING "Build string (default: ${DEFAULT_BUILD})")
  14. # NOTE: On Windows, this does nothing except when using MinGW or Cygwin.