CMake complains The CXX compiler identification is unknown
Your /home/gnu/bin/c++
seem to require additional flag to link things properly and CMake doesn't know about that.
To use /usr/bin/c++
as your compiler run cmake
with -DCMAKE_CXX_COMPILER=/usr/bin/c++
.
Also, CMAKE_PREFIX_PATH
variable sets destination dir where your project' files should be installed. It has nothing to do with CMake installation prefix and CMake itself already know this.
CMake does not find Visual C++ compiler
I have found the solution. While the Visual Studio IDE installed successfully it did not install any build tools and therefore did not install the C++ compiler.
By attempting to manually create a C++ project in the Visual Studio 2015 GUI I was able to prompt it to download the C++ packages. CMake was then able to find the compiler without any difficulty.
Related Topics
How to Show Qsqlquerymodel in Qml
What Is Namespace Used For, in C++
Exporting Static Data in a Dll
Or Is Not Valid C++:Why Does This Code Compile
Observable Behavior and Undefined Behavior -- What Happens If I Don't Call a Destructor
How to Know Underlying Type of Class Enum
Erase Element in Vector While Iterating the Same Vector
How to Handle a Ctrl-Break Signal in a Command Line Interface
Why the Sequence-Operation Algorithms Predicates Are Passed by Copy
In Which Versions of the C++ Standard Does "(I+=10)+=10" Have Undefined Behaviour
Is There an Non-Short Circuited Logical "And" in C++
How to Write Make_Unique() in VS2012
Local Type as Template Arguments in C++
Why Does Makeintresource() Work
What's the Standard/Official Name for Universal References