I am trying to play with cmake to create a little C ++ code.
I don't have g++ yet (I'm testing on a virtual OS)
When I call cmake . I get nasty error messages.
-- The C compiler identification is GNU 4.7.2 **-- The CXX compiler identification is unknown** -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done **CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name. -- Configuring incomplete, errors occurred!**
In principle, everything is in order. It says that errors have occurred, but he says too much than necessary. I just want to get an accurate and concise message that "g ++ is not installed. INSTALL it."
Is there a way to check if g++ installed and then give the appropriate message?
cmake
Tengis Nov 01 '13 at 23:17 2013-11-01 23:17
source share