Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

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 ericLemanissier committed Sep 15, 2023
1 parent f63aed6 commit ab43ebb
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 ab43ebb

Please sign in to comment.