AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
![]() ![]() To add the analysis target, use the pvs_studio_add_target command. When you run the build of this target, the analysis will run with the parameters that you specified when adding this target. To run the analyzer, CMake module adds a separate target for the build. In the GIT_TAG parameter, you can specify the master branch to always use the latest version of the module. ![]() You can load the file with the PVS-Studio.cmake module yourself if you don't want to have unnecessary dependencies on FetchContent.ĭon't forget to update the module with the release of a new analyzer's version to avoid problems in its work. If you have problems with it, try to take the latest release tag of the current analyzer's version. Thus, you'll integrate the analyzer into your project. Such code will load the Git repository with the module into the generated cache folder. You can do it like this: include(FetchContent)įetchContent_MakeAvailable(PVS_CMakeModule) The easiest and recommended way to add a module to the project is to use FetchContent for automatic load. ![]() You can read more about entering the license here. Make sure you entered the license key (Linux/macOS section). Thus, you can check only those parts that you need, not the whole project. For example, you can set specific goals for the analysis. This mode allows you to integrate the analyzer into a CMake-based project in a deeper way. Besides the compile_commands.json mode, you can work with PVS-Studio in CMake with a special CMake module. ![]()
0 Comments
Read More
Leave a Reply. |