[CMake] showing the exact compiler command line

Bill Hoffman hoffman.mlist at gmail.com
Wed Apr 4 13:41:13 EDT 2007


Filipe Sousa wrote:
> Jesper Eskilson wrote:
>   
>> Hi!
>>
>> Is there any way to get NMake Makefiles to show the exact compiler
>> options used? If I do
>>
>> nmake VERBOSE=yes
>>
>> I only see that cl is executed like this:
>>
>> [...]/cl.exe @commandfile
>>
>> but the command file is removed when nmake exits.
>>
>> I'm having trouble setting CMAKE_CXX_FLAGS[_<CONFIG>] properly.
>>     
>
> Have a look at flags.cmake in the build tree.
>
>   
Actually look at Modules/Platform/Windows.cmake at the end of the file 
there is some stuff you can uncomment to fix the problem.

-Bill



More information about the CMake mailing list