Skip to content

Commit

Permalink
Use latest Windows SDK available
Browse files Browse the repository at this point in the history
Adopt a workaround provided by @jcar87, which is a temporary
hotfix until having #13159
fixed.

Signed-off-by: Uilian Ries <[email protected]>
  • Loading branch information
uilianries committed Dec 21, 2022
1 parent 69e29ab commit bb7f014
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions recipes/jasper/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from conan.tools.build import cross_building
from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout
from conan.tools.files import apply_conandata_patches, copy, export_conandata_patches, get, rm, rmdir, save
from conan.tools.microsoft import is_msvc
import os
import textwrap

Expand Down Expand Up @@ -69,6 +70,12 @@ def generate(self):
tc = CMakeDeps(self)
tc.generate()

# TODO: Remove after fixing https://github.com/conan-io/conan-center-index/issues/13159
# C3I workaround to force CMake to choose the highest version of
# the windows SDK available in the system
if is_msvc(self) and not self.conf.get("tools.cmake.cmaketoolchain:system_version"):
tc.variables["CMAKE_SYSTEM_VERSION"] = "10.0"

def build(self):
apply_conandata_patches(self)
cmake = CMake(self)
Expand Down

0 comments on commit bb7f014

Please sign in to comment.