root/sandbox/sigis/christian.gonzalez/trunk/cmake/MacroAddLinkFlags.cmake

Revision 43, 0.6 KB (checked in by anton, 3 years ago)

trunk replaced with 1.0RC1

Line 
1# - MACRO_ADD_LINK_FLAGS(<_target> "flags...")
2
3# Copyright (c) 2006, Oswald Buddenhagen, <ossi@kde.org>
4#
5# Redistribution and use is allowed according to the terms of the BSD license.
6# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
7
8MACRO (MACRO_ADD_LINK_FLAGS _target _flg)
9
10   GET_TARGET_PROPERTY(_flags ${_target} LINK_FLAGS)
11   if (_flags)
12      set(_flags "${_flags} ${_flg}")
13   else (_flags)
14      set(_flags "${_flg}")
15   endif (_flags)
16   SET_TARGET_PROPERTIES(${_target} PROPERTIES LINK_FLAGS "${_flags}")
17
18ENDMACRO (MACRO_ADD_LINK_FLAGS)
Note: See TracBrowser for help on using the browser.