How to add C++-compiler with cmake?

Add add_compile_options directive. Then clear cmake cache and rebuild cmake files.

Example

add_compile_options("-g")

add_compile_options

Advertisements