[CMake] VERBOSE environment variable

hjuvi hjuvi-cmake at yahoo.fr
Wed Feb 5 08:02:07 EST 2014



> http://www.cmake.org/Bug/view.php?id=3378

Thank you, I had not searched in the buglist...

The problem is that "VERBOSE=" is also verbose (with "dependee..." messages). In my case, "VERBOSE=" is not given in make arguments, it is an exported environment variable (export VERBOSE).

The detection of this env variable is not made in "plain makefiles" as stated in the bug, but in Cmake itself.

The verbose status is checked in this file (to display "dependee..."):

    Source/cmLocalUnixMakefileGenerator3.cxx
The verbose status is set in this file:

    Source/cmake.cxx

  bool verbose = ((cmSystemTools::GetEnv("VERBOSE") != 0)
                   && (cmSystemTools::GetEnv("CMAKE_NO_VERBOSE") == 0));


GetEnv != 0 checks that the variable is defined, whatever the value (including empty).



More information about the CMake mailing list