Better handling of setting Windows flag in Conan.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
ecb17a8bad
commit
1facac87cb
|
@ -7,15 +7,16 @@ class CreatureLibConan(ConanFile):
|
|||
url = "https://git.p-epsilon.com/Deukhoofd/CreatureLib"
|
||||
description = "The core implementation for turn based battling using creatures."
|
||||
settings = "compiler"
|
||||
options = {"shared": [True, False], "windows": [True, False]}
|
||||
default_options = {"shared": True, "windows": False}
|
||||
options = {"shared": [True, False]}
|
||||
default_options = {"shared": True}
|
||||
generators = "cmake"
|
||||
exports_sources = "*"
|
||||
compiler = "clang"
|
||||
|
||||
def build(self):
|
||||
cmake = CMake(self)
|
||||
cmake.definitions["WINDOWS"] = self.settings.get_safe("windows")
|
||||
if self.settings.get_safe("os") == "Windows":
|
||||
cmake.definitions["WINDOWS"] = True
|
||||
cmake.configure()
|
||||
cmake.build()
|
||||
|
||||
|
|
Loading…
Reference in New Issue