[CMake] build from cvs failed

Brad King brad.king at kitware.com
Mon Feb 21 14:45:03 EST 2005


David Somers wrote:
> I'm trying to build Cmake on my Gentoo/Linux system from the latest code in
> CVS...
> 
> Boostrap works... make works... but make install falls over when it comes to
> installing some of the man pages...
> 
> [snip]
> -- Installing /usr/local/man/man1/ccmake.1
> CMake Error: Error in cmake code at
> /usr/src/CMake/CMakeLists.txt:1:
> Command PROJECT not scriptable
> 
> CMake Error: Error in cmake code at
> /usr/src/CMake/CMakeLists.txt:3:
> Command MARK_AS_ADVANCED not scriptable
> 
> ... and more of the same...
> 
> Any ideas on what's happening?

This is a bug in the CVS version exposed by an in-source build.  We can 
fix it but meanwhile you can work around the problem by doing an 
out-of-source build.  Create a new CMake checkout and build it like this:

$ ls -d CMake
CMake/
$ mkdir CMake-build
$ cd CMake-build
$ ../CMake/bootstrap
$ make
$ make install

-Brad


More information about the CMake mailing list