[Cmake] CMAKE_ROOT

Brad King brad.king at kitware.com
Wed May 30 09:40:14 EDT 2001


> I've set an environment variable
> CMAKE_ROOT
> but I get errors..
> can't load
> $(CMAKE_ROOT)/some utility template stuff.....
> or similar.
> 
> Where's the correct place to set these variables?
CMAKE_ROOT is automatically set by CMake when it runs.  No CMakeLists file
should ever try to set it explicitly.  Also, to refer to it, you must use
${CMAKE_ROOT}, not $(CMAKE_ROOT).

-Brad





More information about the CMake mailing list