Skip to content

Commit

Permalink
Fixed regex in conanfile.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperrealm committed Nov 23, 2022
1 parent 3ec7c2c commit 14ce49b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down Expand Up @@ -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++"
self.cpp_info.components["libconfig_cpp"].names["pg_config"] = "libconfig++"

0 comments on commit 14ce49b

Please sign in to comment.