mirror of
https://github.com/reactos/reactos.git
synced 2025-06-20 07:36:05 +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
|
@ -574,14 +574,6 @@ function(set_module_type MODULE TYPE)
|
|||
set_subsystem(${MODULE} windows)
|
||||
endif()
|
||||
|
||||
# Set the PE image version numbers from the NT OS version ReactOS is based on
|
||||
if(MSVC)
|
||||
target_link_options(${MODULE} PRIVATE "/VERSION:5.01")
|
||||
else()
|
||||
target_link_options(${MODULE} PRIVATE
|
||||
-Wl,--major-image-version,5 -Wl,--minor-image-version,01 -Wl,--major-os-version,5 -Wl,--minor-os-version,01)
|
||||
endif()
|
||||
|
||||
# Set unicode definitions
|
||||
if(__module_UNICODE)
|
||||
target_compile_definitions(${MODULE} PRIVATE UNICODE _UNICODE)
|
||||
|
@ -643,7 +635,7 @@ function(set_module_type MODULE TYPE)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
if (TYPE STREQUAL kernel)
|
||||
if(TYPE STREQUAL kernel)
|
||||
# Kernels are executables with exports
|
||||
set_property(TARGET ${MODULE} PROPERTY ENABLE_EXPORTS TRUE)
|
||||
set_target_properties(${MODULE} PROPERTIES DEFINE_SYMBOL "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue