Use conanfile.txt to control package options.
This commit is contained in:
parent
4a022e7f1a
commit
ac84b9f273
|
@ -1,2 +1,8 @@
|
|||
[requires]
|
||||
xerces-c/[>=3.2,<4.0]
|
||||
|
||||
[options]
|
||||
xerces-c:shared=True
|
||||
|
||||
[options.linux]
|
||||
xerces-c:shared=False
|
||||
|
|
|
@ -10,12 +10,6 @@ Project {
|
|||
id: thirdPartyConanPackages
|
||||
condition: enableConan
|
||||
conanfilePath: project.sourceDirectory + "/conanfile.txt"
|
||||
options: {
|
||||
if (qbs.targetOS.contains("unix") && !qbs.targetOS.contains("macos"))
|
||||
return ({"xerces-c:shared": "False"});
|
||||
|
||||
return ({"xerces-c:shared": "True"});
|
||||
}
|
||||
}
|
||||
|
||||
references: [
|
||||
|
|
Loading…
Reference in New Issue
Block a user