diff options
author | John W. Parent <45471568+johnwparent@users.noreply.github.com> | 2024-10-07 16:33:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-07 13:33:25 -0700 |
commit | 717d4800e1a6355020e73d60039efad54462199e (patch) | |
tree | 3538ab81554c9dbad0a9f5b0d02c3d36ec0eaa25 /lib | |
parent | c77916146cbb963d75afe851002f1974753dd19c (diff) | |
download | spack-717d4800e1a6355020e73d60039efad54462199e.tar.gz spack-717d4800e1a6355020e73d60039efad54462199e.tar.bz2 spack-717d4800e1a6355020e73d60039efad54462199e.tar.xz spack-717d4800e1a6355020e73d60039efad54462199e.zip |
Qt package: Add Windows Port (#46788)
Also adds support for Paraview and CMake to build with Qt support on
Windows.
The remaining edits are to enable building of Qt itself on Windows:
* Several packages needed to update `.libs` to properly locate
libraries on Windows
* Qt needed a patch to allow it to build using a Python with a space
in the path
* Some Qt dependencies had not been ported to Windows yet
(e.g. `harfbuzz` and `lcms`)
This PR does not provide a sufficient GL for Qt to use Qt Quick2, as
such Qt Quick2 is disabled on the Windows platform by this PR.
---------
Co-authored-by: Dan Lipsa <dan.lipsa@kitware.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/compilers/msvc.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/spack/spack/compilers/msvc.py b/lib/spack/spack/compilers/msvc.py index 0954d0b7d3..c3e9e13d71 100644 --- a/lib/spack/spack/compilers/msvc.py +++ b/lib/spack/spack/compilers/msvc.py @@ -293,6 +293,17 @@ class Msvc(Compiler): vs22_toolset = Version(toolset_ver) > Version("142") return toolset_ver if not vs22_toolset else "143" + @property + def visual_studio_version(self): + """The four digit Visual Studio version (i.e. 2019 or 2022) + + Note: This differs from the msvc version or toolset version as + those properties track the compiler and build tools version + respectively, whereas this tracks the VS release associated + with a given MSVC compiler. + """ + return re.search(r"[0-9]{4}", self.cc).group(0) + def _compiler_version(self, compiler): """Returns version object for given compiler""" # ignore_errors below is true here due to ifx's |