vcperf changes toolset
Nekto89 opened this issue · 1 comments
It seems that calling vcperf /start overrides usage of older toolset. Project has been generated through CMake with
-G"Visual Studio 16 2019" -Tv142,version=14.26,host=x64
Generated vcxproj has <Import Project="C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Auxiliary/Build/14.26/Microsoft.VCToolsVersion.14.26.props" />
There was no problem until I've updated VS2019 from 16.6.* to 16.8.3. Normal build works as usual but if I call "vcperf /start mysessionname" build starts using 14.28 instead. I've noticed it because project tries to link with static libraries (with /GL) that are built with 14.26
"LINK : fatal error C1047: The object or library file 'C:\3d\Boost-1.74.0-msvc16u6-x64\lib\Release\libboost_filesystem.lib' was created by a different version of the compiler than other objects like '....obj'; rebuild all objects and libraries with the same compiler"
I can try reproducing on simple project if description isn't enough and it's not intended behavior.
My bad. Problem appears only if I run build from developer console (default one or after call to "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvars64.bat" -vcvars_ver=14.26
)
So it's not related to vcperf