SergiusTheBest / FindWDK

CMake module for building drivers with Windows Development Kit (WDK)
BSD 3-Clause "New" or "Revised" License
251 stars 53 forks source link

WindowsSdkDir vs WDKContentRoot #8

Open clouds56 opened 5 years ago

clouds56 commented 5 years ago

I'm using VS2019 and WDK 10, WindowsSdkDir is automatically set while WDKContentRoot not. Could we add some kine of fallback to WindowsSdkDir?

SergiusTheBest commented 5 years ago

I'm not sure I understand the problem. Could you describe it a little bit more? WDK is still in C:/Program Files*/Windows Kits/10 nevertheless what version of Visual Studio you use.

clouds56 commented 5 years ago

I'm using WDK installed in custom location, namely C:/Kits/10, and after running C:\Program Files(x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" (I think most person would run it before using msvc), the environment variable WindowsSdkDir would properly set to C:/Kits/10, while WDKContentRoot not

SergiusTheBest commented 5 years ago

@clouds56 Could you make a separate PR for it?