Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I see the commands issued by cmake with --build option

Tags:

build

cmake

How could I see the commands issued when I run "cmake --build . --target INSTALL" command? There doesn't seem to be an option like --versbose or something. The cmake help says that "cmake --build" is an interface to the underlying build tool, but doesn't say anything about the dump of commands issued.

The reason I need this is because, when I try to run msbuild on commandline, it fails with an error saying the target INSTALL doesn't exist in the project. However, cmake succeeds. So, I guess, cmake also might be using msbuild itself, albeit with some specific options.

like image 405
bbv Avatar asked Jan 16 '14 10:01

bbv


1 Answers

You can pass additional options to the native build tool with the -- switch, i.e.:

cmake --build . --target INSTALL -- /verbosity:detailed
like image 128
sakra Avatar answered Oct 21 '22 01:10

sakra