CMakeLists.txt 539 B

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