wdk_add_driver and wdk_add_driver add the compilation switch /GR-, which conflicts with /GR normally added by CMake (found with CMake 3.18 with Ninja and MSVC 16.8 preview, x64).
Q: Would there be a way to remove existing compilation flags for WDK targets? I noticed all the user-mode stuff is there when building a kernel driver, including inappropriate stuff: UCRT include directories, references to kernel32.lib and friends... even exception modes (/EHsc).