Skip to content
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

Specify Build Config When Using CTest #40

Closed
kilo52 opened this issue Apr 1, 2024 · 0 comments · Fixed by #42
Closed

Specify Build Config When Using CTest #40

kilo52 opened this issue Apr 1, 2024 · 0 comments · Fixed by #42
Assignees
Labels
C++ Affects project source templates or init code for C++ C Affects project source templates or init code for C Improvement Improvement of an existing feature Templates Changes in project source templates

Comments

@kilo52
Copy link
Member

kilo52 commented Apr 1, 2024

In the test script for C and C++ project source templates, add the --build-config argument when calling ctest. Otherwise, when using build systems with multi-config builds, CTest might complain about the fact that it's ambiguous which build configuration (e.g. Release vs. Debug) to use for the tests.

Solution:
Add --build-config argument in test.sh scripts.

@kilo52 kilo52 converted this from a draft issue Apr 1, 2024
@kilo52 kilo52 added Improvement Improvement of an existing feature Templates Changes in project source templates C++ Affects project source templates or init code for C++ C Affects project source templates or init code for C labels Apr 1, 2024
@kilo52 kilo52 self-assigned this Apr 8, 2024
@kilo52 kilo52 moved this from Open to Evaluation in Systems, Tools & Common Libraries (STCL) Apr 8, 2024
@kilo52 kilo52 moved this from Evaluation to Development in Systems, Tools & Common Libraries (STCL) Apr 11, 2024
@kilo52 kilo52 linked a pull request Apr 11, 2024 that will close this issue
@kilo52 kilo52 moved this from Development to Review in Systems, Tools & Common Libraries (STCL) Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++ Affects project source templates or init code for C++ C Affects project source templates or init code for C Improvement Improvement of an existing feature Templates Changes in project source templates
Development

Successfully merging a pull request may close this issue.

1 participant