From daaecf4f6a6a19a70fac6efa5756d63c1baca84a Mon Sep 17 00:00:00 2001 From: Martin Siggel Date: Tue, 30 Aug 2022 22:33:07 +0200 Subject: [PATCH] Use correct build mode --- .github/workflows/main.yml | 2 +- conanfile.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d6c06d7..52b1a5b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,7 +42,7 @@ jobs: retention-days: 1 - name: Build conan package run: | - conan create . -o tixi3:shared=True + conan create . -o tixi3:shared=True -s build_type=${{ matrix.config }} build-win64: strategy: diff --git a/conanfile.py b/conanfile.py index 234d2b3..1f472cd 100644 --- a/conanfile.py +++ b/conanfile.py @@ -126,7 +126,11 @@ def _module_file_rel_path(self): def package_info(self): self.cpp_info.includedirs.append(os.path.join("include", "tixi3")) - self.cpp_info.libs = ['tixi3'] + + if self.settings.build_type != "Debug": + self.cpp_info.libs = ['tixi3'] + else: + self.cpp_info.libs = ['tixi3-d'] if self.settings.os == "Windows": self.cpp_info.system_libs = ['Shlwapi']