[CMake] showing the exact compiler command line
Jesper Eskilson
jesper at eskilson.se
Thu Apr 5 03:01:08 EDT 2007
2007/4/4, Bill Hoffman <hoffman.mlist at gmail.com>:
> 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.
I've tried to comment them out, but the makefiles generated still use
@<< ... << to place the command line in a temporary file.
--
/Jesper
More information about the CMake
mailing list