cmUtils.hxx 545 B

1234567891011121314151617
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmUtils_hxx
  4. #define cmUtils_hxx
  5. #include "cmsys/SystemTools.hxx"
  6. // Use the make system's VERBOSE environment variable to enable
  7. // verbose output. This can be skipped by also setting CMAKE_NO_VERBOSE
  8. // (which is set by the Eclipse generator).
  9. inline bool isCMakeVerbose()
  10. {
  11. return (cmSystemTools::HasEnv("VERBOSE") &&
  12. !cmSystemTools::HasEnv("CMAKE_NO_VERBOSE"));
  13. }
  14. #endif