target_compile_options attempts to apply c++ flags to compile c objects