2012-08-13 21:47:32 +04:00
|
|
|
set(SUBDIR_DEFINED 1 PARENT_SCOPE)
|
|
|
|
set(SUBDIR_UNDEFINED PARENT_SCOPE)
|
2009-07-22 21:42:27 +04:00
|
|
|
|
|
|
|
# The above sets should not affect the current scope.
|
2012-08-13 21:47:32 +04:00
|
|
|
if(DEFINED SUBDIR_UNDEFINED)
|
2009-07-22 21:42:27 +04:00
|
|
|
PASS("SubdirScope Undefine Test" "(${SUBDIR_UNDEFINED})")
|
2012-08-13 21:50:14 +04:00
|
|
|
else()
|
2009-07-22 21:42:27 +04:00
|
|
|
FAILED("SubdirScope Undefine Test" "(${SUBDIR_UNDEFINED})")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2012-08-13 21:47:32 +04:00
|
|
|
if(DEFINED SUBDIR_DEFINED)
|
2009-07-22 21:42:27 +04:00
|
|
|
FAILED("SubdirScope Define Test" "(${SUBDIR_DEFINED})")
|
2012-08-13 21:50:14 +04:00
|
|
|
else()
|
2009-07-22 21:42:27 +04:00
|
|
|
PASS("SubdirScope Define Test" "(${SUBDIR_DEFINED})")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|