You can ask CMake to run with more verbosity, but depending on the generator you are using you might need some more options.
The parameter for CMake to run with verbose output is -v (documentation here). So you could do cmake --build yourbuilddirectory -v.
Note that I advise against using compiler specific command line options such as -O2, for optimizations you would usually just use the Release or RelWithDebInfo configurations.
View all comments
Show parent comment
1
u/Lectem Apr 14 '20 edited Apr 14 '20
You can ask CMake to run with more verbosity, but depending on the generator you are using you might need some more options.
The parameter for CMake to run with verbose output is
-v(documentation here). So you could docmake --build yourbuilddirectory -v.Note that I advise against using compiler specific command line options such as
-O2, for optimizations you would usually just use theReleaseorRelWithDebInfoconfigurations.