mirror of
https://github.com/reactos/reactos.git
synced 2025-06-25 09:19:44 +00:00
[CMAKE] Move toolchain specific handling to set_module_type_toolchain
+ style fixes
This commit is contained in:
parent
5c21460680
commit
f5bace8536
3 changed files with 14 additions and 11 deletions
|
@ -249,6 +249,9 @@ function(set_image_base MODULE IMAGE_BASE)
|
|||
endfunction()
|
||||
|
||||
function(set_module_type_toolchain MODULE TYPE)
|
||||
# Set the PE image version numbers from the NT OS version ReactOS is based on
|
||||
target_link_options(${MODULE} PRIVATE "/VERSION:5.01")
|
||||
|
||||
if((TYPE STREQUAL win32dll) OR (TYPE STREQUAL win32ocx) OR (TYPE STREQUAL cpl))
|
||||
target_link_options(${MODULE} PRIVATE /DLL)
|
||||
elseif(TYPE IN_LIST KERNEL_MODULE_TYPES)
|
||||
|
@ -261,7 +264,7 @@ function(set_module_type_toolchain MODULE TYPE)
|
|||
target_link_options(${MODULE} PRIVATE /DRIVER:WDM)
|
||||
elseif (TYPE STREQUAL kernel)
|
||||
# Mark .rsrc section as non-disposable non-pageable, as bugcheck code needs to access it
|
||||
target_link_options(${MODULE} PRIVATE /SECTION:.rsrc,!DP )
|
||||
target_link_options(${MODULE} PRIVATE /SECTION:.rsrc,!DP)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue