Use conanfile.txt to control package options.

This commit is contained in:
Roman Telezhynskyi 2023-02-20 15:47:06 +02:00
parent 4a022e7f1a
commit ac84b9f273
2 changed files with 6 additions and 6 deletions

View File

@ -1,2 +1,8 @@
[requires]
xerces-c/[>=3.2,<4.0]
[options]
xerces-c:shared=True
[options.linux]
xerces-c:shared=False

View File

@ -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: [