From d2b2c90a06bf1f4a21df196430d1f95856900410 Mon Sep 17 00:00:00 2001 From: Allen Winter Date: Thu, 30 Jun 2011 17:36:45 -0400 Subject: Move the modules, modules-test and systeminfo subdirs into 'attic' --- attic/modules/MacroAddLinkFlags.cmake | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 attic/modules/MacroAddLinkFlags.cmake (limited to 'attic/modules/MacroAddLinkFlags.cmake') diff --git a/attic/modules/MacroAddLinkFlags.cmake b/attic/modules/MacroAddLinkFlags.cmake new file mode 100644 index 00000000..a10d39ea --- /dev/null +++ b/attic/modules/MacroAddLinkFlags.cmake @@ -0,0 +1,18 @@ +# - MACRO_ADD_LINK_FLAGS(<_target> "flags...") + +# Copyright (c) 2006, Oswald Buddenhagen, +# +# Redistribution and use is allowed according to the terms of the BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. + +MACRO (MACRO_ADD_LINK_FLAGS _target _flg) + + GET_TARGET_PROPERTY(_flags ${_target} LINK_FLAGS) + if (_flags) + set(_flags "${_flags} ${_flg}") + else (_flags) + set(_flags "${_flg}") + endif (_flags) + SET_TARGET_PROPERTIES(${_target} PROPERTIES LINK_FLAGS "${_flags}") + +ENDMACRO (MACRO_ADD_LINK_FLAGS) -- cgit v1.2.1