diff --git a/conanfile.py b/conanfile.py index 16c4477..00d23bf 100644 --- a/conanfile.py +++ b/conanfile.py @@ -27,7 +27,7 @@ class LibconfigConan(ConanFile): def set_version(self): configure_ac = tools.load(os.path.join(self.recipe_folder, "configure.ac")) - self.version = next(re.finditer(r"AC_INIT\(libconfig,[ \t]+([0-9.]+),.*", configure_ac)).group(1) + self.version = next(re.finditer(r"AC_INIT\(\[libconfig\],[ \t]*\[([0-9.]+)\],.*", configure_ac)).group(1) def config_options(self): if self.settings.os == "Windows": @@ -67,4 +67,4 @@ def package_info(self): self.cpp_info.components["libconfig_cpp"].defines = ["LIBCONFIGXX_STATIC"] self.cpp_info.components["libconfig_cpp"].names["cmake_find_package"] = ["libconfig++"] self.cpp_info.components["libconfig_cpp"].names["cmake_find_package_multi"] = ["libconfig++"] - self.cpp_info.components["libconfig_cpp"].names["pg_config"] = "libconfig++" \ No newline at end of file + self.cpp_info.components["libconfig_cpp"].names["pg_config"] = "libconfig++"