[CMake] Concerning ninja -v

Kyle Edwards kyle.edwards at kitware.com
Mon Oct 21 09:45:52 EDT 2019


On Mon, 2019-10-21 at 10:23 +0100, David Aldrich wrote:
> I have a simple CMake project with subdirectories:
> 
> cmake_minimum_required(VERSION 3.10)
> project(MyProject VERSION 1.0.0)
> 
> set(CMAKE_VERBOSE_MAKEFILE ON CACHE BOOL "ON")
> 
> add_subdirectory(say-hello)
> add_subdirectory(hello-exe)
> 
> Will the 'CMAKE_VERBOSE_MAKEFILE' option be inherited by the
> CMakeLists.txt files in the subdirectories?
> 
> I want to run ninja with the '-v' option for verbosity but the above
> 'set' command is not achieving this. What do I need to do
> differently?

Does just invoking ninja with -v not show verbosity? That should do it.
I don't believe CMAKE_VERBOSE_MAKEFILE affects Ninja builds.

Kyle


More information about the CMake mailing list