Details
-
Bug
-
Status: Closed (View Workflow)
-
High
-
Resolution: Fixed
-
6.04/04
-
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:
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