~ubuntu-branches/ubuntu/quantal/libindi/quantal

« back to all changes in this revision

Viewing changes to cmake_modules/.svn/text-base/MacroBoolTo01.cmake.svn-base

  • Committer: Bazaar Package Importer
  • Author(s): Rohan Garg, Rohan Garg, Jonathan Riddell, Jonathan Thomas
  • Date: 2011-07-14 18:18:04 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110714181804-3fybxiy3tpjnk9kq
Tags: 0.8-0ubuntu1
[ Rohan Garg ]
* New upstream release
  - Add boost to build deps
  - Bump soversion to 0.8

[ Jonathan Riddell ]
* Use source format 3.0
* Add kubuntu_01_link_pthreads.diff to fix linking with pthreads

[ Jonathan Thomas ]
* Change Maintainer from MOTU to Ubuntu Developers

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# MACRO_BOOL_TO_01( VAR RESULT0 ... RESULTN )
2
 
# This macro evaluates its first argument
3
 
# and sets all the given vaiables either to 0 or 1
4
 
# depending on the value of the first one
5
 
 
6
 
# Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org>
7
 
#
8
 
# Redistribution and use is allowed according to the terms of the BSD license.
9
 
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
10
 
 
11
 
 
12
 
MACRO(MACRO_BOOL_TO_01 FOUND_VAR )
13
 
   FOREACH (_current_VAR ${ARGN})
14
 
      IF(${FOUND_VAR})
15
 
         SET(${_current_VAR} 1)
16
 
      ELSE(${FOUND_VAR})
17
 
         SET(${_current_VAR} 0)
18
 
      ENDIF(${FOUND_VAR})
19
 
   ENDFOREACH(_current_VAR)
20
 
ENDMACRO(MACRO_BOOL_TO_01)