reactos/drivers/storage/ide/pciide/CMakeLists.txt
Dmitry Borisov 0fb3c1e91e
[PCIIDE] Make the resource section not discardable. CORE-17401 (#3594)
[PCIX] Make the resource section not discardable.

These drivers need to be able to access their message resources at any time.
2021-05-10 00:36:38 +02:00

13 lines
436 B
CMake

add_library(pciide MODULE pciide.c pciide.rc)
set_module_type(pciide kernelmodedriver)
if(MSVC)
target_link_options(pciide PRIVATE /SECTION:.rsrc,!D)
else()
add_custom_command(
TARGET pciide POST_BUILD
COMMAND native-pefixup --section:.rsrc,!D $<TARGET_FILE:pciide>
VERBATIM)
endif()
add_importlibs(pciide pciidex ntoskrnl)
add_cd_file(TARGET pciide DESTINATION reactos/system32/drivers NO_CAB FOR all)