[CMAKE] Fixup of driver sections in GCC builds

Also introduce a helper variable to list KMode modules
This commit is contained in:
Jérôme Gardou 2021-02-24 10:20:18 +01:00 committed by Jérôme Gardou
parent 5489efcb1a
commit 812c9e5a11
2 changed files with 10 additions and 3 deletions

View file

@ -540,6 +540,8 @@ function(add_importlibs _module)
endforeach()
endfunction()
# Some helper lists
list(APPEND KERNEL_MODULE_TYPES kerneldll kernelmodedriver wdmdriver)
function(set_module_type MODULE TYPE)
cmake_parse_arguments(__module "UNICODE" "IMAGEBASE" "ENTRYPOINT" ${ARGN})