mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[CMAKE]
Disable MSVC linker warning LNK4078 (multiple sections found with different attributes) for INIT sections. svn path=/trunk/; revision=66268
This commit is contained in:
parent
d932c7c5bf
commit
2566611f13
1 changed files with 3 additions and 2 deletions
|
@ -229,9 +229,10 @@ function(set_module_type_toolchain MODULE TYPE)
|
|||
if((${TYPE} STREQUAL "win32dll") OR (${TYPE} STREQUAL "win32ocx") OR (${TYPE} STREQUAL "cpl"))
|
||||
add_target_link_flags(${MODULE} "/DLL")
|
||||
elseif(${TYPE} STREQUAL "kernelmodedriver")
|
||||
add_target_link_flags(${MODULE} "/DRIVER")
|
||||
# Disable linker warning 4078 (multiple sections found with different attributes) for INIT section use
|
||||
add_target_link_flags(${MODULE} "/DRIVER /IGNORE:4078")
|
||||
elseif(${TYPE} STREQUAL "wdmdriver")
|
||||
add_target_link_flags(${MODULE} "/DRIVER:WDM")
|
||||
add_target_link_flags(${MODULE} "/DRIVER:WDM /IGNORE:4078")
|
||||
endif()
|
||||
|
||||
if(RUNTIME_CHECKS)
|
||||
|
|
Loading…
Reference in a new issue