[CMake] CMAKE_CXX_COMPILER-NOTFOUND

Thomas Christian Chust chust at web.de
Sat Mar 31 13:03:35 EST 2007


Manfred Rebentisch wrote:

> [...]
> on my Debian-Backup-Server I dont need g++ but only gcc. How can I avoid the 
> following error:
> 
> -- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND
> CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   
> Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
> CMake Error: Internal CMake error, TryCompile configure of cmake failed
> [...]

Hello,

you can specify the languages needed by your project in the CMake
PROJECT command. Using PROJECT(some_name C) disables the checks for a
C++ compiler.

cu,
Thomas


More information about the CMake mailing list