Skip to content

Commit daaecf4

Browse files
committed
Use correct build mode
1 parent bcfe997 commit daaecf4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
retention-days: 1
4343
- name: Build conan package
4444
run: |
45-
conan create . -o tixi3:shared=True
45+
conan create . -o tixi3:shared=True -s build_type=${{ matrix.config }}
4646
4747
build-win64:
4848
strategy:

conanfile.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,11 @@ def _module_file_rel_path(self):
126126

127127
def package_info(self):
128128
self.cpp_info.includedirs.append(os.path.join("include", "tixi3"))
129-
self.cpp_info.libs = ['tixi3']
129+
130+
if self.settings.build_type != "Debug":
131+
self.cpp_info.libs = ['tixi3']
132+
else:
133+
self.cpp_info.libs = ['tixi3-d']
130134

131135
if self.settings.os == "Windows":
132136
self.cpp_info.system_libs = ['Shlwapi']

0 commit comments

Comments
 (0)