Author: akhaldi
Date: Wed Mar 5 11:39:15 2014
New Revision: 62424
URL:
http://svn.reactos.org/svn/reactos?rev=62424&view=rev
Log:
[CMAKE]
* User the proper target var name.
CORE-7959
Modified:
trunk/reactos/cmake/CMakeMacros.cmake
Modified: trunk/reactos/cmake/CMakeMacros.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/CMakeMacros.cmake?re…
==============================================================================
--- trunk/reactos/cmake/CMakeMacros.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/CMakeMacros.cmake [iso-8859-1] Wed Mar 5 11:39:15 2014
@@ -460,11 +460,11 @@
# Handle hotpatchable images.
# GCC has this as a function attribute so we're handling it using
DECLSPEC_HOTPATCH
if(__module_HOTPATCHABLE AND MSVC)
- set_property(TARGET ${_target} APPEND_STRING PROPERTY COMPILE_FLAGS "
/hotpatch")
+ set_property(TARGET ${MODULE} APPEND_STRING PROPERTY COMPILE_FLAGS "
/hotpatch")
if(ARCH STREQUAL "i386")
- set_property(TARGET ${_target} APPEND_STRING PROPERTY LINK_FLAGS "
/FUNCTIONPADMIN:5")
+ set_property(TARGET ${MODULE} APPEND_STRING PROPERTY LINK_FLAGS "
/FUNCTIONPADMIN:5")
elseif(ARCH STREQUAL "amd64")
- set_property(TARGET ${_target} APPEND_STRING PROPERTY LINK_FLAGS "
/FUNCTIONPADMIN:6")
+ set_property(TARGET ${MODULE} APPEND_STRING PROPERTY LINK_FLAGS "
/FUNCTIONPADMIN:6")
endif()
endif()