diff --git a/recipes/iir1/all/conandata.yml b/recipes/iir1/all/conandata.yml index 76618921cbde5..27b792c65a3e4 100644 --- a/recipes/iir1/all/conandata.yml +++ b/recipes/iir1/all/conandata.yml @@ -2,6 +2,9 @@ sources: "1.9.0": url: "https://github.com/berndporr/iir1/archive/refs/tags/1.9.0.tar.gz" sha256: "BF2C3CD819151D5B85E84CC8349C1AA9DD5E4157A7070BDD143130278B4375E8" + "1.9.1": + url: "https://github.com/berndporr/iir1/archive/refs/tags/1.9.1.tar.gz" + sha256: "97B4A7D62FA4859AC0D80283696B0D91C320B61EC2A455CDD3D8CFBB2BE3AD9A" patches: "1.9.0": - patch_file: "patches/0002-Add-runtime-export-to-install.patch" diff --git a/recipes/iir1/all/conanfile.py b/recipes/iir1/all/conanfile.py index 64a516b828ddf..e4012b200e789 100644 --- a/recipes/iir1/all/conanfile.py +++ b/recipes/iir1/all/conanfile.py @@ -21,10 +21,12 @@ class Iir1Conan(ConanFile): options = { "shared": [True, False], "fPIC": [True, False], + "noexceptions": [True, False], } default_options = { "shared": False, "fPIC": True, + "noexceptions": False, } generators = "cmake" @@ -50,6 +52,8 @@ def export_sources(self): def config_options(self): if self.settings.os == "Windows": del self.options.fPIC + if tools.Version(self.version) < "1.9.1": + del self.options.noexceptions def configure(self): if self.options.shared: @@ -72,6 +76,7 @@ def _configure_cmake(self): return self._cmake self._cmake = CMake(self) + self._cmake.definitions['IIR1_NO_EXCEPTIONS'] = self.options.get_safe("noexceptions", False) self._cmake.configure(build_folder=self._build_subfolder) return self._cmake @@ -108,3 +113,7 @@ def package_info(self): self.cpp_info.components["iir"].set_property("cmake_target_name", "iir::{}".format(name)) self.cpp_info.components["iir"].libs = [name] + + if self.options.get_safe("noexceptions", False): + self.cpp_info.components["iir"].defines.append("IIR1_NO_EXCEPTIONS") + diff --git a/recipes/iir1/config.yml b/recipes/iir1/config.yml index 7a91a5a420efd..ea8e29b620756 100644 --- a/recipes/iir1/config.yml +++ b/recipes/iir1/config.yml @@ -1,4 +1,5 @@ versions: "1.9.0": - folder: all - + folder: "all" + "1.9.1": + folder: "all"