[Cmake] Pb with Last CVS version of CMake

Brad King brad.king at kitware.com
Thu Nov 28 23:20:14 EST 2002


Hi Thomas,

> 1) It asks for a "Platform" directory which does not exist in Modules
> 2) It asks for a Linux.cmake file which does not exist in this directory

You have to do "cvs update -d".

> 3) I compile VTK
> 4) When I try to link my code with VTK, it does not remember the
> compiling options while it was doing so with the former version. In my

This is actually due to an update of VTK, not CMake.  Either way, we have
disabled the automatic setting of the compiler in projects using VTK.
There were too many problems with projects that use VTK and a second
library built by CMake.  When both VTK and the other library try to set
the compiler settings, they fight over it, and different source files get
built with different settings.

> CMake Error: The selected VTK was built with "g++", but the current
> compiler is "c++".  Please set CMAKE_CXX_COMPILER to "g++".

You have to set the compiler for your project to "g++" as the instructions
in the error message indicate.  This can be done by toggling on advanced
options in the CMake curses interface.  It can also be done by setting the
environment variable "CXX" to "g++" before running cmake in an empty build
tree for your project.

-Brad




More information about the CMake mailing list