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

Building ROOT with CMake not in my PATH fails

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • High
    • Resolution: Fixed
    • 6.04/04
    • 6.06/00, 6.04/06
    • Build System
    • None
    • MacOS X 10.11, but shouldn't matter.

    Description

      Dear Pere,

      I was trying something new just now. Since CMake itself can function quite happily "not being set up" (being put into one's PATH environment variable), I tried setting up the build of ROOT 6.04/04 with:

      /usr/local/cmake/3.3.2/bin/cmake -Dall=ON -Drpath=ON -Dunuran=OFF -Dbuiltin_xrootd=ON -DCMAKE_INSTALL_PREFIX=/usr/local/root/v6-04-04 ../root

      But the build failed with:

      /bin/sh: cmake: command not found
      make[2]: *** [core/pcre/pcre-7.8/unpacked] Error 127
      make[1]: *** [core/pcre/CMakeFiles/PCRE.dir/all] Error 2
      make[1]: *** Waiting for unfinished jobs....

      This particular issue comes from the bare "cmake" commands in:

      https://root.cern.ch/gitweb?p=root.git;a=blob;f=core/pcre/CMakeLists.txt;h=03067e71a2ba9bdd683f086b33f44633df5902f3;hb=HEAD

      As far as I understand, one is supposed to use ${CMAKE_COMMAND} in such places in the CMakeLists.txt files. I didn't check if this issue is present in other files as well or not, but it might be.

      Of course I can get around the issue by putting the cmake executable in my path for now, but it could be nice to be able to build ROOT without having to do this. (I need to test a few different CMake versions these days...)

      Cheers,
      Attila

      Attachments

        Activity

          People

            mato Pere Mato Vila
            akraszna Attila Krasznahorkay
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Actual End: