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/MacroAddCompileFlags.cmake | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 attic/modules/MacroAddCompileFlags.cmake (limited to 'attic/modules/MacroAddCompileFlags.cmake') diff --git a/attic/modules/MacroAddCompileFlags.cmake b/attic/modules/MacroAddCompileFlags.cmake new file mode 100644 index 00000000..12038c00 --- /dev/null +++ b/attic/modules/MacroAddCompileFlags.cmake @@ -0,0 +1,19 @@ +# - MACRO_ADD_COMPILE_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_COMPILE_FLAGS _target _flg) + + GET_TARGET_PROPERTY(_flags ${_target} COMPILE_FLAGS) + if (_flags) + set(_flags "${_flags} ${_flg}") + else (_flags) + set(_flags "${_flg}") + endif (_flags) + SET_TARGET_PROPERTIES(${_target} PROPERTIES COMPILE_FLAGS "${_flags}") + +ENDMACRO (MACRO_ADD_COMPILE_FLAGS) -- cgit v1.2.1