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']