blob: c40fadb72f2a2f26c3eaad14829c57bbcd573844 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
set(SUBDIR_DEFINED 1 PARENT_SCOPE)
set(SUBDIR_UNDEFINED PARENT_SCOPE)
# The above sets should not affect the current scope.
if(DEFINED SUBDIR_UNDEFINED)
PASS("SubdirScope Undefine Test" "(${SUBDIR_UNDEFINED})")
else(DEFINED SUBDIR_UNDEFINED)
FAILED("SubdirScope Undefine Test" "(${SUBDIR_UNDEFINED})")
endif(DEFINED SUBDIR_UNDEFINED)
if(DEFINED SUBDIR_DEFINED)
FAILED("SubdirScope Define Test" "(${SUBDIR_DEFINED})")
else(DEFINED SUBDIR_DEFINED)
PASS("SubdirScope Define Test" "(${SUBDIR_DEFINED})")
endif(DEFINED SUBDIR_DEFINED)
|