Skip to content

Commit

Permalink
Add a vs without version in the name
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Apr 23, 2023
1 parent e87ed9a commit 06e9f06
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,37 @@ outputs:
(VS {{ vsyear }} compiler, update {{ update_version }})
license: BSD-3-Clause

- name: vs_{{ cross_target_platform }}
version: {{ vsyear }}.{{ update_version }}
build:
track_features:
- vc{{ vc_major }}
run_exports:
strong:
# compatible within major version. This is MSFT's
# incrementing of the UCRT version. It was 14.0 with
# VS2015, and 14.1 with VS2017 - if the major version
# changes, we're assuming that binary compatibility breaks.
# This has a minimum bound equal to vcver, so building with
# vs2017 here will require the vs2017-era runtime
- vc >={{ vcver }},<{{ vc_major | int + 1 }}
- vc{{ vc_major }}_runtime >={{ runtime_version }}
# Need ucrt for windows<10 and when the VC runtime does not bundle it
- ucrt >=10.0.20348.0 # [(vsver >=17 or (vsver == 16 and update_version >= 10)) and (cross_target_platform == "win-64" or cross_target_platform == "win-32")]
requirements:
run:
- vs{{ vsyear }}_{{ cross_target_platform }} {{ cl_version }}
test:
commands:
- echo "%CMAKE_GENERATOR%"
- echo "%CMAKE_GENERATOR_PLATFORM%"
- echo "%CMAKE_GENERATOR_TOOLSET%"
about:
summary: >-
Activation and version verification of MSVC {{ vcver }}
(VS {{ vsyear }} compiler, update {{ update_version }})
license: BSD-3-Clause

about:
home: https://docs.microsoft.com/en-us/visualstudio/windows/?view=vs-{{ vsyear }}
summary: >-
Expand Down

0 comments on commit 06e9f06

Please sign in to comment.