message: Turn off clang-format unless devtools is specified
diff: @@ -415,6 +415,8 @@ class Axom(CMakePackage, CudaPackage):
  cfg.write(cmake_cache_entry("CPPCHECK_EXECUTABLE",
  pjoin(cppcheck_bin_dir, "cppcheck")))
  + # Only turn on clangformat support if devtools is on
  + if "+devtools" in spec:
  lc_clangformatpath = "/usr/tce/packages/clang/clang-10.0.0/bin/clang-format"
  # This works only with Ubuntu + Debian - other distros (Arch/Fedora) use
  # /usr/bin/clang-format which would require actually running the executable to grab the version
  @@ -425,6 +427,10 @@ class Axom(CMakePackage, CudaPackage):
  cfg.write(cmake_cache_entry("CLANGFORMAT_EXECUTABLE", apt_clangformatpath))
  else:
  cfg.write("# Unable to find clang-format\n\n")
  + cfg.write(cmake_cache_option("ENABLE_CLANGFORMAT", False))
  + else:
  + cfg.write("# Devtools disabled\n\n")
  + cfg.write(cmake_cache_option("ENABLE_CLANGFORMAT", False))
  ##################################
  # Other machine specifics
  