How can I make Visual Studio's build be very verbose?
Open the project properties dialog, then choose
Configuration Properties → C/C++ → General
Change the setting for
Suppress Startup Banner
toNo
The
cl
command line(s) will be shown in the output window.
How to change the Visual Studio build output verbosity through scripting?
Visual Studio includes a vsregedit.exe utility that you can use to change Visual Studio settings:
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\VsRegEdit.exe" set local HKCU General MSBuildLoggerVerbosity dword 4
How to perform verbose builds of a CMake project with Visual Studio 2019 generator
CMake supports passing generator-specific compiler flags as build tool options.
If you're using a Visual Studio generator, you can pass MsBuild command line options such as -verbosity:level
with a command like:
cmake.exe --build C:\<PROJECTDIR>\cmake-build-debug --target <BUILDTARGET> --config Debug -- -verbosity:diagnostic
In Clion, just open the project's CMake settings and add -- -verbosity:diagnostic
to the "build options" line edit.
Visual studio 2017 Verbose publish
This is for vs 2015 but for 2017 the settings are the same:
https://msdn.microsoft.com/en-us/library/jj651643.aspx
To change the amount of information included in the build log On the
menu bar, choose Tools, Options.On the Projects and Solutions page, choose the Build and Run page.
In the MSBuild project build output verbosity list, choose one of the
following values, and then choose the OK button.
Visual Studio keeps building everything
Divide and conquer: Limit the amount of build time that goes on in your solution by creating additional solutions that contain logical subsets of projects you're working on. This limits your scope and will speed up builds.
See the The Partitioned Single Solution Model in this MSDN article: http://msdn.microsoft.com/en-us/library/ee817674.aspx
Key quote from the article:
Separate solution files allow you to work on smaller subsystems within your overall system
but retain the key benefits of project references. Within each subsolution file,
project references are used between constituent projects.
How to build with CMake to both release config and verbose
VERBOSE=ON
is not understood by MSBuild.
You probably know that syntax from Unix Makefile generators, where setting eg. the VERBOSE
environment variable will give you the verbose output. Note that this is a feature of the generator (ie. make
) and not of CMake. Thus when switching to a different generator (in this case MSBuild), you have to find a different way to get the verbose output that works with that generator.
For MSBuild, that would be the /verbosity
option. See also this answer for details.
As for the CMAKE_VERBOSE_MAKEFILE
option, the manual clearly states that this option only has an effect for Makefile generators (emphasis added by me):
Users may enable the option in their local build tree to get more
verbose output from Makefile builds and show each command line as it
is launched.
Related Topics
Why Is a Boolean 1 Byte and Not 1 Bit of Size
Can a Recursive Function Be Inline
":" (Colon) in C Struct - What Does It Mean
How to Compare Multiple Strings Inside an If Statement
Sort Array by First Item in Subarray C++
End of File(Eof) of Standard Input Stream (Stdin)
Iterate Through Struct and Class Members
How to Explain Undefined Behavior to Know-It-All Newbies
How to Initialize Std::Array<T, N> Elegantly If T Is Not Default Constructible
Is Right Shift Undefined Behavior If the Count Is Larger Than the Width of the Type
Is There Any "Standard" Htonl-Like Function for 64 Bits Integers in C++
How Are Iterators and Pointers Related
Using Input Function in C on Linux, Without Pressing Enter
Colorizing Text in the Console with C++
Openprocess/Readprocessmemory/Writeprocessmemory/Closehandle Equivalent