vscode-cmake-tools icon indicating copy to clipboard operation
vscode-cmake-tools copied to clipboard

Do not automatically build before running CTest

Open MartinsSmirnovs opened this issue 2 years ago • 2 comments

Brief Issue Summary

ADD_TEST() CMake function is not limited to only running binaries defined in CMake files. It can run any command we pass to it, making it coupled with CMake Tools extension a perfect duo for running all kinds of tests and checks. Apart from unit tests we can also run static analyzers and they do not require any of project's binaries to be present. Most of them just need compile_commands.json. Therefore it would be great if CMake Tools extension would not automatically start building project when running CTest. A single CMake configure is enough.

MartinsSmirnovs avatar Jan 10 '23 10:01 MartinsSmirnovs