CMakeLists.txt 447 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()
  7. FAILED("SubdirScope Undefine Test" "(${SUBDIR_UNDEFINED})")
  8. endif()
  9. if(DEFINED SUBDIR_DEFINED)
  10. FAILED("SubdirScope Define Test" "(${SUBDIR_DEFINED})")
  11. else()
  12. PASS("SubdirScope Define Test" "(${SUBDIR_DEFINED})")
  13. endif()