From 077c00a1a37003f7ddb7cc7d560db6a59e91a526 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 31 Jul 2020 17:31:23 +0200 Subject: [PATCH] Set shared library on if so requested. --- conanfile.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conanfile.py b/conanfile.py index a66fa46..6a6fc33 100644 --- a/conanfile.py +++ b/conanfile.py @@ -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"