On 19.06.2016 19:36, Kornel Benko wrote:
Am Sonntag, 19. Juni 2016 um 19:23:14, schrieb racoon <[email protected]>
On 19.06.2016 18:20, Georg Baum wrote:
racoon wrote:
...
The most important question now is why cmake does not find your C compiler.
I have no clue. There is a cl.exe in
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin
Daniel, please check if you have cl.exe in PATH.
1.) Open a command window.
2.) call 'cl -v'
In a common command window cl is not found.
But if I start
1) Open Developer Command Prompt for VS2015
2) call 'cl -v'
I get
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23918 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
cl : Command line warning D9002 : ignoring unknown option '-v'
cl : Command line error D8003 : missing source filename
So I guess that's okay.
Alternatively you can specify the compiler via
-DCMAKE_CXX_COMPILER="C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\bin/cl.exe"
Not sure what that means. I tried
cmake-gui.exe -DCMAKE_CXX_COMPILER="C:\Program Files (x86)\Microsoft
Visual Studio 14.0\VC\bin/cl.exe"
but probably there was a typo so I tried
cmake-gui.exe -DCMAKE_CXX_COMPILER="C:\Program Files (x86)\Microsoft
Visual Studio 14.0\VC\bin\cl.exe"
Same problem.
or set CMAKE_CXX_COMPILER in cmake-gui.
So where how do I do that exactly? I tried to "+ Add Entry" and
Name: CMAKE_CXX_COMPILER
Type: FILEPATH
Value: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe
No luck either.
Daniel