[CMake] How to see the generated compiler commands?

Michael Hertling mhertling at online.de
Tue Jun 8 19:26:52 EDT 2010


On 06/08/2010 07:02 PM, Torri, Stephen CIV NSWCDD, W15 wrote:
>> 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

Alternatively, you can set the CMAKE_VERBOSE_MAKEFILE variable to
TRUE in the CMakeLists.txt to enable verbose "making" by default.

Regards,

Michael


More information about the CMake mailing list