1 year ago

#135189

test-img

Artur K.

CMake: EWDK is detected as VS2022 with v143 toolset when only its actually VS2019 + v142

Evening,

I am trying to get a ci pipeline working for my cs class about windows driver. For this I am using the Enterprise WDK which is a command line build environment that does not require any installation prior to use. See: https://learn.microsoft.com/en-us/windows-hardware/drivers/develop/using-the-enterprise-wdk

When building the driver with msbuild from the EWDKthrough the solution file the build succeeds. On the other hand, when calling cmake it incorrectly detects EWDK as Building for: Visual Studio 17 2022 and therefore generates VCTargetsPath.vcxproj with <PlatformToolset>v143</PlatformToolset> although the EWDK is shipped with v142 and Visual Studio 2019.

When using the same CMakeList.txt with VS2019 Pro + WDK on my notebook cmake correctly detect everything correctly.

Is there any way to manually overwrite the Toolset or to point cmake in the right direction to choose the correct VS version?

Regards Artur

c++

cmake

wdk

0 Answers

Your Answer

Accepted video resources