This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Conveniently provide active build types to port files #20250
Labels
category:vcpkg-feature
The issue is a new capability of the tool that doesn’t already exist and we haven’t committed
Is your feature request related to a problem? Please describe.
To deal with the actually selected build types, port files and maintainer functions need to write:
This is rather long for a common condition and easy to get wrong (
DEFINED
?Release
?).This is one of the barriers for properly supporting single-config triplets in portfiles.
Proposed solution
Provide a list variable with the active build types.
Describe alternatives you've considered
VCPKG_BUILD_TYPES
would be shorter but invites typos due to similarity with VCPKG_BUILD_TYPES.Discrete boolean variables would allow even shorter conditions, and remove ambiguity about spelling/case:
The text was updated successfully, but these errors were encountered: