Set shared library on if so requested.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-07-31 17:31:23 +02:00
parent 2b86e2cb95
commit 077c00a1a3
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,9 @@ class CreatureLibConan(ConanFile):
if self.settings.os == "Windows":
self.output.warn("Noticed Windows target, setting Cmake WINDOWS=On.")
cmake.definitions["WINDOWS"] = "On"
if self.options.shared:
self.output.info("Building shared library.")
cmake.definitions["SHARED"] = "On"
if self.options.staticC:
self.output.info("Linking C libraries statically")
cmake.definitions["STATICC"] = "ON"