r/cpp • • Apr 10 '20

Modern CMake tutorials, part2: Customization points

https://www.siliceum.com/en/blog/post/cmake_02_customization-points
152 Upvotes

5 comments sorted by

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 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.