cmake/Source/cmUtils.hxx

15 lines
510 B
C++
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
2021-09-14 00:13:48 +02:00
#pragma once
2016-10-30 18:24:19 +01:00
2017-07-20 19:35:53 +02:00
#include "cmsys/SystemTools.hxx"
2016-10-30 18:24:19 +01:00
// Use the make system's VERBOSE environment variable to enable
// verbose output. This can be skipped by also setting CMAKE_NO_VERBOSE
2018-04-23 21:13:27 +02:00
// (which is set by the Eclipse generator).
2016-10-30 18:24:19 +01:00
inline bool isCMakeVerbose()
{
return (cmSystemTools::HasEnv("VERBOSE") &&
!cmSystemTools::HasEnv("CMAKE_NO_VERBOSE"));
}