[CMake] VS2015 and toolset v110

Hendrik Sattler post at hendrik-sattler.de
Tue Jun 21 11:57:22 EDT 2016


To generate for V110 toolset, you can just use visual studio 11 generator and open the result in VS14.

HS


Am 21. Juni 2016 16:28:36 MESZ, schrieb Lars <laasunde at hotmail.com>:
>Hello,
> 
>Environment is Windows 7sp1, CMake 3.5.2 and Visual Studio 2015 Pro.
> 
>Running below command in MSBuild Command prompt for VS2015 shell;
>cmake -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 14 2015" -T v110
>../src
> 
>output is;
>The c compiler identification is unknown
>The cxx compiler identification is unknown
>No CMAKE_C_COMPILER could be found
>No CMAKE_CXX_COMPILER could be found
> 
>Updating command with different toolset (same shell)
>cmake -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 14 2015" -T v140
>../src
> 
>output is;
>The c compiler identification is MSVC 19.0.23..
>The cxx compiler identification is MSVC 19.0.23..
>check for working c compiler using Visual Studio 14 2015
>check for working c compiler using Visual Studio 14 2015 -- works
> 
>Using toolset v140 appears to find the compiler but using v100 or v110
>or vs120 does not work. Why is this happening?
> 
>The second example using v140 actually also fails but that is because
>it is trying to find boost_math_c99_v140 library which does not exists
>(we use v110 library).
> 
>(and no, I cannot change toolset at the moment)
> 
>Kind regards, Lars
> 		 	   		  
>
>------------------------------------------------------------------------

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.


More information about the CMake mailing list