[CMake] CMAKE_ROOT path

James Bigler bigler at cs.utah.edu
Mon Apr 25 16:27:48 EDT 2005


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


More information about the CMake mailing list