The cmake compilation type usually defaults to debug, but when compiling software, you generally need to use the release version, and debug is too slow. Setting it as the release version can be done in the cmake file, or it can be specified with parameters when running the cmake command. Since the parameter specification is relatively simple and convenient, here is a record of the parameter specification command:
the original executed command is
cmake ..
Now add the following parameters:
cmake -DCMAKE_BUILD_TYPE=Release ..