1 # - vlc_add_compile_flag(<_target> "flags...")
3 # Copyright (c) 2006, Oswald Buddenhagen, <ossi@kde.org>
5 # Redistribution and use is allowed according to the terms of the BSD license.
6 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
9 MACRO (vlc_add_compile_flag _target _flg)
11 GET_TARGET_PROPERTY(_flags ${_target} COMPILE_FLAGS)
13 set(_flags "${_flags} ${_flg}")
17 SET_TARGET_PROPERTIES(${_target} PROPERTIES COMPILE_FLAGS "${_flags}")
19 ENDMACRO (vlc_add_compile_flag)