Skip to content

Commit

Permalink
apriltag: add missing lib suffix for debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Oct 15, 2023
1 parent feb16d0 commit 554bd4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion recipes/apriltag/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ def package_info(self):
self.cpp_info.set_property("cmake_file_name", "apriltag")
self.cpp_info.set_property("cmake_target_name", "apriltag::apriltag")
self.cpp_info.set_property("pkg_config_name", "apriltag")
self.cpp_info.libs = ["apriltag"]
suffix = "d" if self.settings.build_type == "Debug" else ""
self.cpp_info.libs = ["apriltag" + suffix]
self.cpp_info.includedirs.append(os.path.join("include", "apriltag"))
if self.settings.os in ["Linux", "FreeBSD"]:
self.cpp_info.system_libs = ["m", "pthread"]
Expand Down

0 comments on commit 554bd4b

Please sign in to comment.