Skip to content

Commit

Permalink
Seperate C and C++ components
Browse files Browse the repository at this point in the history
  • Loading branch information
datalogics-staylor committed May 20, 2024
1 parent 0560657 commit b94fc89
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions recipes/qr-code-generator/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ def package(self):
cmake.install()

def package_info(self):
self.cpp_info.libs = [
"qrcodegen" if Version(self.version) < "1.7.0" else "qrcodegencpp", "qrcodegenc"
]
self.cpp_info.components["qrcodegencpp"].set_property("cmake_target_name", "qr-code-generator::qrcodegencpp")
self.cpp_info.components["qrcodegencpp"].libs = ["qrcodegen" if Version(self.version) < "1.7.0" else "qrcodegencpp"]
self.cpp_info.components["qrcodegenc"].set_property("cmake_target_name", "qr-code-generator::qrcodegenc")
self.cpp_info.components["qrcodegenc"].libs = ["qrcodegenc"]
if self.settings.os in ["Linux", "FreeBSD"]:
self.cpp_info.system_libs.append("m")

0 comments on commit b94fc89

Please sign in to comment.