Skip to content

Commit

Permalink
qt-advanced-docking-system: fix Debug lib name
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Dec 4, 2023
1 parent 761ea32 commit 0858dfb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions recipes/qt-advanced-docking-system/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,12 @@ def package(self):

def package_info(self):
if Version(self.version) >= 4:
lib_name = f"qt{self._qt_major}advanceddocking"
self.cpp_info.includedirs.append(os.path.join("include", lib_name))
name = f"qt{self._qt_major}advanceddocking"
self.cpp_info.includedirs.append(os.path.join("include", name))
lib_name = f"{name}d" if self.settings.build_type == "Debug" else name
else:
lib_name = "qtadvanceddocking"

if self.options.shared:
self.cpp_info.libs = [lib_name]
else:
Expand Down

0 comments on commit 0858dfb

Please sign in to comment.