message: Adds cppcheck to host-config when it is built by spack
diff: @@ -279,6 +279,13 @@ class UberenvAxom(Package):
  else:
  cfg.write("# lcov and genhtml not built by uberenv\n\n")
  + if "cppcheck" in spec:
  + cppcheck_bin_dir = get_spec_path(spec, "cppcheck", path_replacements, use_bin=True)
  + cfg.write("# cppcheck from uberenv\n")
  + cfg.write(cmake_cache_entry("CPPCHECK_EXECUTABLE", pjoin(cppcheck_bin_dir, "cppcheck")))
  + else:
  + cfg.write("# cppcheck not built by uberenv\n\n")
  +
  cfg.write("##############\n")
  cfg.write("# MPI\n")
  cfg.write("##############\n\n")
  