~ubuntu-branches/ubuntu/lucid/cmake/lucid

« back to all changes in this revision

Viewing changes to Tests/FunctionTest/SubDirScope/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Artur Rona
  • Date: 2009-12-16 11:11:54 UTC
  • mfrom: (3.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20091216111154-6accvv6yq86h2hkc
Tags: 2.8.0-5ubuntu1
* Merge from debian testing (LP: #497349). Remaining changes:
  - Keep the Replaces: on cmake-data to cover the Kubuntu version from
    Jaunty in case someone decides to do an (unsupported) Jaunty->Lucid
    upgrade.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
SET(SUBDIR_DEFINED 1)
2
 
SET(SUBDIR_UNDEFINED)
3
 
SET(SUBDIR_DEFINED ${SUBDIR_DEFINED} PARENT_SCOPE)
4
 
SET(SUBDIR_UNDEFINED ${SUBDIR_UNDEFINED} PARENT_SCOPE)
 
1
SET(SUBDIR_DEFINED 1 PARENT_SCOPE)
 
2
SET(SUBDIR_UNDEFINED PARENT_SCOPE)
 
3
 
 
4
# The above sets should not affect the current scope.
 
5
IF(DEFINED SUBDIR_UNDEFINED)
 
6
  PASS("SubdirScope Undefine Test" "(${SUBDIR_UNDEFINED})")
 
7
ELSE(DEFINED SUBDIR_UNDEFINED)
 
8
  FAILED("SubdirScope Undefine Test" "(${SUBDIR_UNDEFINED})")
 
9
ENDIF(DEFINED SUBDIR_UNDEFINED)
 
10
IF(DEFINED SUBDIR_DEFINED)
 
11
  FAILED("SubdirScope Define Test" "(${SUBDIR_DEFINED})")
 
12
ELSE(DEFINED SUBDIR_DEFINED)
 
13
  PASS("SubdirScope Define Test" "(${SUBDIR_DEFINED})")
 
14
ENDIF(DEFINED SUBDIR_DEFINED)