How to set "-CMAKE_CXX_FLAGS=release" when writing CPP-extension

am I right?:

from setuptools import setup, Extension
from torch.utils import cpp_extension
import os
name = 'vecenv'
root_folder = os.path.dirname(os.path.abspath(__file__))
print('root_folder', root_folder)
setup(name=name,
      ext_modules=[cpp_extension.CppExtension(name, sources=['ENV.cpp'],  # source can only contain cpp file
                                              include_dirs=[root_folder,
                                                            root_folder+'/include/third_party/concurrentqueue',
                                                            root_folder+'/include',
                                                            ],
                                              extra_compile_args=['-std=c++17','-O3','-march=native','-CMAKE_CXX_FLAGS=release' ])
                   ],
      cmdclass={'build_ext': cpp_extension.BuildExtension})