Skip to content

Commit

Permalink
(conan-io#19283) spdlog: make sure libdirs is empty when header_only=…
Browse files Browse the repository at this point in the history
…True
  • Loading branch information
gegles authored and BASILI Michel committed Mar 18, 2024
1 parent 45e4c50 commit 47758c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion recipes/spdlog/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ def package_info(self):
self.cpp_info.components["libspdlog"].defines.append("SPDLOG_FMT_EXTERNAL")
self.cpp_info.components["libspdlog"].requires = ["fmt::fmt"]

if not self.options.header_only:
if self.options.header_only:
self.cpp_info.components["libspdlog"].libdirs = []
else:
suffix = "d" if self.settings.build_type == "Debug" else ""
self.cpp_info.components["libspdlog"].libs = [f"spdlog{suffix}"]
self.cpp_info.components["libspdlog"].defines.append("SPDLOG_COMPILED_LIB")
Expand Down

0 comments on commit 47758c7

Please sign in to comment.