Skip to content

Option to pass extra arguments to ctest #315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kalebealvs
Copy link

This patch enables the plugin to pass extra args to ctest when running tests.

Resolves: #296

@@ -28,6 +28,7 @@ local osys = require("cmake-tools.osys")
require("cmake-tools").setup {
cmake_command = "cmake", -- this is used to specify cmake command path
ctest_command = "ctest", -- this is used to specify ctest command path
ctest_extra_args = {}, -- this is used to specify extra args for ctest
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can put this variable into Config.base_settings? So we can edit it easily.

@Civitasv
Copy link
Owner

Sorry for my late. It's a great option, I personally think putting it into cmake_settings will be better. What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to pass extra arguments to ctest
2 participants