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

Don't keep processing if ntddk file isn't found #3

Closed ghost closed 6 years ago

ghost commented 6 years ago

If WDK is not present/can't be found, the build aborts with:

CMake Error at C:/Program Files/CMake/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find WDK (missing: WDK_LATEST_NTDDK_FILE)

without ever even reaching my test for WDK_FOUND. This change corrects that problem by stopping processing if no NTDDK files are found.

SergiusTheBest commented 6 years ago

Hi @johnnyedge. Thank you for finding this problem!