Gnu Make Builder
The Gnu Make Builder changes are simpler because the make process is not recursive.
Modify each project's Build Command
In the Momentics Project Explorer, select each C/C++ project in turn and view the C/C++ Build project properties page.
Deselect the Use Default Build command and add the kwinject command, and its arguments, in front of the existing Build Command contents. For example:
${system_path:kwinject} -u -o ${ProjDirPath}/buildspec.out make ...
Build each project
Build each project in turn by doing a Clean followed by a Build. Verify that there are no build errors in the Momentics Console window.
Modify each project's Klocwork Build settings
To modify each project's Klocwork Build Settings to use the build specification (buildspec.out
) generated by the previous steps:
- In the Klocwork Build Settings page of the project properties, select Use build specification file.
- Enter the location of the build specification file (
buildspec.out
). This file must be unique for each project. The previous steps cause the file to be created in the root of the project's Momentics source tree (that is, where the project's makefile is located). Clicking Browse automatically brings you to this folder. Note that the build specification file won't exist until after the project is cleaned and built.
Now go back to Connect to a project on the Validate server.