GH-41169: [CI][Release] Specify --build-config explicitly on Windows #41178
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rationale for this change
#37821 changed to use
add_test()usage from old style to new style:1a1d2c8?diff=unified&w=1#diff-1ce47eec54afaee769086e1a720c5ed65bc347cd8fc60a233de67fd895dda329L763-R764
MSVC generators multi-config generators. With old style, all tests are run without specifying
--build-configexplicitly. With new style, we need to specify--build-configexplicitly.See also: https://cmake.org/cmake/help/latest/command/add_test.html
What changes are included in this PR?
Specify
--build-configexplicitly.Are these changes tested?
Yes.
Are there any user-facing changes?
No.
Missing "-C <config>"?on tests #41169