~ubuntu-branches/ubuntu/gutsy/kde4libs/gutsy

« back to all changes in this revision

Viewing changes to cmake/modules/MacroAddCompileFlags.cmake

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-02-21 11:00:12 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070221110012-6kw8khr9knv6lmg1
Tags: 3.80.3-0ubuntu1
New upstream unstable release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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)