Compile libffi and mpdecimal statically on Windows

Contributes to CURA-9365
This commit is contained in:
j.spijker@ultimaker.com 2022-06-19 19:08:24 +02:00 committed by Jelle Spijker
parent 0fb8d62825
commit a31124673b
2 changed files with 8 additions and 1 deletions

View file

@ -86,7 +86,10 @@ class CuraConan(ConanFile):
def configure(self):
self.options["*"].shared = True
if self.settings.os == "Windows":
self.options["mpdecimal"].cxx = False
# Needed to compile CPython on Windows with our configuration voor Visual Studio
self.options["mpdecimal"].cxx = True
self.options["mpdecimal"].shared = False
self.options["libffi"].shared = False
def validate(self):
if self.version and tools.Version(self.version) <= tools.Version("4"):