Author: jgardou
Date: Fri Nov 12 23:52:40 2010
New Revision: 49571
URL:
http://svn.reactos.org/svn/reactos?rev=49571&view=rev
Log:
[CAKE]
- simplify set_image_base
Modified:
branches/cmake-bringup/gcc.cmake
Modified: branches/cmake-bringup/gcc.cmake
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/gcc.cmake?rev=495…
==============================================================================
--- branches/cmake-bringup/gcc.cmake [iso-8859-1] (original)
+++ branches/cmake-bringup/gcc.cmake [iso-8859-1] Fri Nov 12 23:52:40 2010
@@ -54,12 +54,7 @@
endmacro()
macro(set_image_base MODULE IMAGE_BASE)
- set(NEW_LINKER_FLAGS "-Wl,--image-base,${IMAGE_BASE}")
- get_target_property(LINKER_FLAGS ${MODULE} LINK_FLAGS)
- if(LINKER_FLAGS)
- set(NEW_LINKER_FLAGS "${LINKER_FLAGS} ${NEW_LINKER_FLAGS}")
- endif()
- set_target_properties(${MODULE} PROPERTIES LINK_FLAGS ${NEW_LINKER_FLAGS})
+ add_linkerflag(${MODULE} "-Wl,--image-base,${IMAGE_BASE}")
endmacro()
macro(add_importlibs MODULE)