Read environment variable directly from conanfile.py.
This commit is contained in:
parent
824d978473
commit
1e6179e69d
|
@ -1,3 +1,5 @@
|
|||
import os
|
||||
|
||||
from conans import ConanFile
|
||||
|
||||
class Recipe(ConanFile):
|
||||
|
@ -7,4 +9,7 @@ class Recipe(ConanFile):
|
|||
|
||||
def configure(self):
|
||||
if self.settings.os == "Linux":
|
||||
self.options["xerces-c"].shared = False
|
||||
self.options["xerces-c"].shared = False
|
||||
|
||||
if self.settings.os == "Macos" and "MACOS_DEPLOYMENT_TARGET" in os.environ:
|
||||
self.settings.os.version = os.environ["MACOS_DEPLOYMENT_TARGET"]
|
||||
|
|
|
@ -12,11 +12,6 @@ Project {
|
|||
condition: enableConan
|
||||
conanfilePath: project.sourceDirectory + "/conanfile.py"
|
||||
verbose: true
|
||||
settings: {
|
||||
if (qbs.targetOS.contains("macos") && project.minimumMacosVersion !== undefined)
|
||||
return ({"os.version": project.minimumMacosVersion});
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
||||
references: [
|
||||
|
|
Loading…
Reference in New Issue
Block a user