pgRouting

root/trunk/cmake/MacroAddCompileFlags.cmake

Revision 43, 0.6 kB (checked in by anton, 1 year ago)

trunk replaced with 1.0RC1

Line 
1 # - MACRO_ADD_COMPILE_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
8
9 MACRO (MACRO_ADD_COMPILE_FLAGS _target _flg)
10
11    GET_TARGET_PROPERTY(_flags ${_target} COMPILE_FLAGS)
12    if (_flags)
13       set(_flags "${_flags} ${_flg}")
14    else (_flags)
15       set(_flags "${_flg}")
16    endif (_flags)
17    SET_TARGET_PROPERTIES(${_target} PROPERTIES COMPILE_FLAGS "${_flags}")
18
19 ENDMACRO (MACRO_ADD_COMPILE_FLAGS)
Note: See TracBrowser for help on using the browser.