class_docstr: CMakeBuild represents a build directory initialized by cmake.
  
  The build instance can be used to build/test/install. It alleviates the
  user to know which generator is used.
docstr: Indicate if a path is CMake build directory.
  
  This method only checks for the existence of paths and does not do any
  validation whatsoever.
docstr_tok: ["Indicate","if","a","path","is","CMake","build","directory",".","This","method","only","checks","for","the","existence","of","paths","and","does","not","do","any","validation","whatsoever","."]
code: def is_build_dir(path):
      """Indicate if a path is CMake build directory.
  
      This method only checks for the existence of paths and does not do any
      validation whatsoever.
      """
      cmake_cache = os.path.join(path, "CMakeCache.txt")
      cmake_files = os.path.join(path, "CMakeFiles")
      return os.path.exists(cmake_cache) and os.path.exists(cmake_files)
  
imports: import os
  import re
  from shutil import rmtree, which
  from .command import Command, default_bin
label_desc: Use image node_id 8 for calling the CMakeBuild obj's underlying member method code with example usage: obj.is_build_dir(path) and returns: unknown