Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-7296

CMake 2.8.10 does not support TIMESTAMP

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.5.0
    • cmake
    • Anywhere with CMake 2.x instead of 3.x (specifically 2.8.10).

    Description

      The patch https://reviews.apache.org/r/57052/ moved the build time and date info out of compile definitions and into a build file. While testing, an existent bug was discovered where the CMake command `string(TIMESTAMP BUILD_TIME "%s" UTC)` is unsupported with CMake 2.8.10. Instead of replacing the variable with the time, it replaces with with "%s".

      This is not a Linux vs Windows bug. This is specifically unsupported in 2.8.10. Configuring with `cmake3` does not reproduce the bug.

      Attachments

        Issue Links

          Activity

            People

              andschwa Andrew Schwartzmeyer
              andschwa Andrew Schwartzmeyer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: