[CMake] How to see the generated compiler commands?

Torri, Stephen CIV NSWCDD, W15 stephen.torri at navy.mil
Tue Jun 8 13:02:25 EDT 2010


> From: cmake-bounces at cmake.org on behalf of Felipe Sodré Silva
> Sent: Tue 6/8/2010 12:43 PM
> To: cmake at cmake.org
> Subject: [CMake] How to see the generated compiler commands?
> 
> 
> Hi, I wrote a cmake script that generates a unix makefile for a project, and I'd like to know if there's an easy 
> way to see the compiler arguments the make system is using to build the project. Looking at the generated 
> Makefile doesn't seem to be an option.

Yes there is. To see what is being done do the following:
 
make VERBOSE=1
 
Stephen


More information about the CMake mailing list