[CMake] Visual Studio 10 compiler identification unknown

Jochen Issing iss at nesono.com
Mon Aug 5 11:37:45 EDT 2013


Hi, I ran I to this problem before but should have fixed that previously.

I have checked for double environment variables, but have found none
(I filtered the output of set and saved it sorted as well as sorted and unique but output did not differ)

-- jochen

On 05.08.2013, at 16:45, Sybren A. Stüvel <sybren at stuvel.eu> wrote:

> Hi Jochen,
> 
> I had the same issue when I ran CMake (the regular one for Windows, so not a Cygwin-build) from a Cygwin prompt. It was caused by the VS compiler not being able to handle two environment variables that only differ in case. In my case there were a "tmp" and a "TMP" variable, and it caused this error.
> 
> For me the solution was to clean up all environment variables, then kill all MSBuild.exe processes. Without this last step, the old environment will still be used. In your case maybe killing MSBuild.exe is enough?
> 
> Best,
> Sybren
> 
> 
> 
> On 5 August 2013 16:32, <iss at nesono.com> wrote:
>> Hi All,
>> 
>> I hope this is not an old and boring question to you, but I did not find any help in the web to the following problem:
>> 
>> I try to create a Visual Studio 10 solution on Windows 8 with having Visual Studio being installed alongside Visual Studio 11. Somehow, cmake does not find the right compilers:
>> 
>> -- The C compiler identification is unknown
>> -- The CXX compiler identification is unknown
>> ...
>> 
>> Any ideas how to fix that or gain more debugging information? I invoked:
>>> cmake -G 'Visual Studio 10' --debug-trycompile --debug-output ../
>> and get the error in cygwin/or visual studio developer cmd
>> 
>> Hope anyone knows the answer...
>> 
>> -- jochen
>> --
>> 
>> Powered by www.kitware.com
>> 
>> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>> 
>> Kitware offers various services to support the CMake community. For more information on each offering, please visit:
>> 
>> CMake Support: http://cmake.org/cmake/help/support.html
>> CMake Consulting: http://cmake.org/cmake/help/consulting.html
>> CMake Training Courses: http://cmake.org/cmake/help/training.html
>> 
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>> 
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/listinfo/cmake
> 
> 
> 
> -- 
> Sybren A. Stüvel
> 
> http://stuvel.eu/
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130805/0f9a3a73/attachment.htm>


More information about the CMake mailing list