Author: tkreuzer
Date: Sat Feb 14 18:58:52 2015
New Revision: 66268
URL:
http://svn.reactos.org/svn/reactos?rev=66268&view=rev
Log:
[CMAKE]
Disable MSVC linker warning LNK4078 (multiple sections found with different attributes)
for INIT sections.
Modified:
trunk/reactos/cmake/msvc.cmake
Modified: trunk/reactos/cmake/msvc.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/msvc.cmake?rev=66268…
==============================================================================
--- trunk/reactos/cmake/msvc.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/msvc.cmake [iso-8859-1] Sat Feb 14 18:58:52 2015
@@ -229,9 +229,10 @@
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)