👷 Build with VS 2022
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
from conans import ConanFile, MSBuild, tools, AutoToolsBuildEnvironment
|
||||
from conans.tools import os_info
|
||||
import glob
|
||||
|
||||
|
||||
class freeimageConan(ConanFile):
|
||||
@ -18,6 +19,9 @@ class freeimageConan(ConanFile):
|
||||
|
||||
def build(self):
|
||||
if os_info.is_windows:
|
||||
for file in glob.glob("./**/*2017.vcxproj", recursive=True):
|
||||
print(f"Patching winsdk in file {file}")
|
||||
tools.replace_in_file(file, "10.0.16299.0", "10.0", strict=False)
|
||||
msbuild = MSBuild(self)
|
||||
msbuild.build("FreeImage.2017.sln")
|
||||
else:
|
||||
|
Reference in New Issue
Block a user