[CMake] CMAKE_ROOT path

William A. Hoffman billlist at nycap.rr.com
Mon Apr 25 16:38:46 EDT 2005


This should not be a problem.   It sounds like at some point the wrong cmake is getting
run.   Have a look at the generated makefile and see what path it is using to cmake.

-Bill


At 04:27 PM 4/25/2005, James Bigler wrote:
>So does no one know how to set the CMAKE_ROOT for multiple installations of CMake?  Any help would be appreciated.
>
>Thanks,
>James
>
>James Bigler wrote:
>>>>>If I have more than one installation of cmake on a system, how do I get cmake to find the correct CMAKE_ROOT that corresponds to the cmake I'm using?  Currently two different cmakes are using the same CMAKE_ROOT.
>>>>
>>>>
>>>>
>>>>
>>>>Where are the two cmake builds/installs and what root are they using?
>>>
>>>
>>>
>>>The system wide installation is in:
>>>
>>>/usr/sci/local/cmake-1.8.3/bin/cmake
>>>
>>>Modules are in:
>>>
>>>/usr/sci/local/cmake-1.8.3/share/CMake/Modules
>>>
>>>I put a new local installation in my home directory:
>>>
>>>/home/sci/bigler/pub/irix/bin/cmake
>>>
>>>With Modules in:
>>>
>>>/home/sci/bigler/pub/irix/share/CMake/Module
>>>
>>>I added this to my CMakeLists.txt
>>>
>>>MESSAGE("CMAKE_ROOT = " ${CMAKE_ROOT})
>>>
>>>This is the output from which and gmake:
>>>
>>>% which cmake
>>>/home/sci/bigler/pub/irix/bin/cmake
>>>% gmake
>>>Building dependencies. cmake.depends...
>>>CMAKE_ROOT = /usr/sci/local/cmake-1.8.3/share/CMake
>>>
>>>I built my copy from source and installed it to my local directory.
>>>
>>>James
>>
>>I also tried to add this command to my top level CMakeLists.txt file:
>>SET(CMAKE_ROOT /home/sci/bigler/pub/irix/share/CMake)
>>This produces strange errors like this one:
>>Make Error: Error in cmake code at
>>/home/sci/bigler/pub/irix/share/CMake/Modules/CheckIncludeFile.cmake:16:
>>IF An IF command had incorrect arguments: ${ARGC} EQUAL 3
>>This file used in 1.8.3 is different and doesn't have the ARGC stuff.  I printed out the value and it's blank.
>>Thanks,
>>James
>>_______________________________________________
>>CMake mailing list
>>CMake at cmake.org
>>http://www.cmake.org/mailman/listinfo/cmake
>_______________________________________________
>CMake mailing list
>CMake at cmake.org
>http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list