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 #42

Merged
merged 1 commit into from
Apr 21, 2024
Merged

Conversation

kilo52
Copy link
Member

@kilo52 kilo52 commented Apr 11, 2024

Adds the build configuration specification to the test.sh scripts of C and C++ project source templates.

In C and C++ project source templates, in the test.sh script, this change
adds the specification of the --build-config argument when calling ctest.
The argument value is read from the CMakeCache.txt under the build tree,
which must be present at that time because it is explicitly defined by
the build.sh script and the underlying project is already built before
any tests are run.
@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 11, 2024
@kilo52 kilo52 linked an issue Apr 11, 2024 that may be closed by this pull request
@kilo52 kilo52 merged commit 27fac01 into master Apr 21, 2024
5 checks passed
@kilo52 kilo52 deleted the templates/ctest-build-config branch April 21, 2024 12:16
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Specify Build Config When Using CTest
1 participant