🐛 Fixed build

This commit is contained in:
Edgar 2021-11-29 10:54:42 +01:00
parent 23b026d664
commit 8c58189817
No known key found for this signature in database
GPG Key ID: 17D930BB616061A5
4 changed files with 10 additions and 5 deletions

View File

@ -4,5 +4,5 @@ os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=Visual Studio
compiler.version=16
compiler.version=15
build_type=Debug

View File

@ -4,5 +4,5 @@ os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=Visual Studio
compiler.version=16
compiler.version=15
build_type=Release

View File

@ -58,6 +58,9 @@ jobs:
file(DOWNLOAD https://cdn.anotherfoxguy.com/DirectX-SDK.zip "$ENV{TMP}/DirectX.zip" SHOW_PROGRESS)
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xzf "$ENV{TMP}/DirectX.zip" WORKING_DIRECTORY "$ENV{DXSDK_DIR}")
- name: Enable Developer Command Prompt
uses: ilammy/msvc-dev-cmd@v1.10.0
- name: Run
env:
CONAN_LOGIN_USERNAME: ${{ secrets.CONAN_LOGIN_USERNAME }}

View File

@ -19,9 +19,11 @@ 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)
version = tools.Version(self.settings.compiler.version)
if version.major > "15":
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: