[CMAKE/MSVC] x64 compilation is always treated as if /hotpatch has been specified...
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 11 Apr 2015 09:34:40 +0000 (09:34 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 11 Apr 2015 09:34:40 +0000 (09:34 +0000)
svn path=/trunk/; revision=67150

reactos/cmake/CMakeMacros.cmake

index 1def11f..8a03329 100644 (file)
@@ -577,8 +577,8 @@ function(set_module_type MODULE TYPE)
     # Handle hotpatchable images.
     # GCC has this as a function attribute so we're handling it using DECLSPEC_HOTPATCH
     if(__module_HOTPATCHABLE AND MSVC AND (NOT ARCH STREQUAL "arm"))
-        set_property(TARGET ${MODULE} APPEND_STRING PROPERTY COMPILE_FLAGS " /hotpatch")
         if(ARCH STREQUAL "i386")
+            set_property(TARGET ${MODULE} APPEND_STRING PROPERTY COMPILE_FLAGS " /hotpatch")
             set_property(TARGET ${MODULE} APPEND_STRING PROPERTY LINK_FLAGS " /FUNCTIONPADMIN:5")
         elseif(ARCH STREQUAL "amd64")
             set_property(TARGET ${MODULE} APPEND_STRING PROPERTY LINK_FLAGS " /FUNCTIONPADMIN:6")