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

Set MSVC_VERSION #1403

Merged
merged 1 commit into from
Feb 2, 2024
Merged

Set MSVC_VERSION #1403

merged 1 commit into from
Feb 2, 2024

Conversation

ericmehl
Copy link
Collaborator

@ericmehl ericmehl commented Feb 2, 2024

Just as we did in GafferHQ/gaffer#5597, this sets the MSVC_VERSION to use MSVC 2019 (aka 14.2), which makes it possible to build on a system with a newer version of MSVC installed.

Checklist

  • I have read the contribution guidelines.
  • I have updated the documentation, if applicable.
  • I have tested my change(s) in the test suite, and added new test cases where necessary.
  • My code follows the Cortex project's prevailing coding style and conventions.

SCons will use the latest installed MSVC version by default. We are
currently using MSVC 2019 (or for this purpose, toolset 14.2, see
https://devblogs.microsoft.com/oldnewthing/20221219-00/?p=107601 for a
valiant attempt at explaining MSVC version numbering) so building with
a newer compiler installed will fail with "unexpected compiler version"
errors. This mismatch will go away when we update to MSVC 2022, but will
almost certainly come up again, so it's worth codifying the version we
use.
@johnhaddon johnhaddon merged commit 373dfa2 into ImageEngine:RB-10.5 Feb 2, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants