Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10142

Invalid CMake ${ROOT_VERSION} returned by find_package(ROOT)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: master, 6.16/02
    • Fix Version/s: 6.18/00, 6.16/02
    • Component/s: Build System
    • Labels:
      None
    • Environment:

      LCG nightlies, taking the sources from GitHub

      Description

      The variable ROOT_VERSION obtained by calling find_package(ROOT) is not understood by CMake as a valid version number. This is behavior is visible in the LCG nightlies that takes the sources of ROOT directly from Git.
      To reproduce:

      cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
      find_package(ROOT)
      message("ROOT Version: ${ROOT_VERSION}")
      find_package(ROOT ${ROOT_VERSION})
      

      The output is

      ROOT Version: 6.16.00-93-gc52748e
      CMake Error at CMakeLists.txt:4 (find_package):
        find_package called with invalid argument "6.16.00-93-gc52748e"
      

        Attachments

          Activity

            People

            • Assignee:
              axel Axel Naumann
              Reporter:
              mato Pere Mato Vila
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Actual End: