15 lines
447 B
CMake
Raw Normal View History

2013-03-16 19:13:01 +02:00
set(SUBDIR_DEFINED 1 PARENT_SCOPE)
set(SUBDIR_UNDEFINED PARENT_SCOPE)
2009-10-04 10:30:41 +03:00
# The above sets should not affect the current scope.
2013-03-16 19:13:01 +02:00
if(DEFINED SUBDIR_UNDEFINED)
2009-10-04 10:30:41 +03:00
PASS("SubdirScope Undefine Test" "(${SUBDIR_UNDEFINED})")
2013-03-16 19:13:01 +02:00
else()
2009-10-04 10:30:41 +03:00
FAILED("SubdirScope Undefine Test" "(${SUBDIR_UNDEFINED})")
2013-03-16 19:13:01 +02:00
endif()
if(DEFINED SUBDIR_DEFINED)
2009-10-04 10:30:41 +03:00
FAILED("SubdirScope Define Test" "(${SUBDIR_DEFINED})")
2013-03-16 19:13:01 +02:00
else()
2009-10-04 10:30:41 +03:00
PASS("SubdirScope Define Test" "(${SUBDIR_DEFINED})")
2013-03-16 19:13:01 +02:00
endif()