Skip to content

Commit 5cf177c

Browse files
authored
Refactor PDB file handling in conanfile.py
Remove installation directory from environment variable and update PDB destination path.
1 parent 73b9d96 commit 5cf177c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

conanfile.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,9 @@ def package(self):
149149
]
150150
)
151151

152-
self.install_dir = pathlib.Path(os.environ["MV_INSTALL_DIR"]).as_posix()
153-
154152
# Add the pdb files next to the libs for RelWithDebInfo linking
155153
if tools.os_info.is_windows:
156-
pdb_dest = pathlib.Path(self.install_dir, "RelWithDebInfo/lib")
154+
pdb_dest = pathlib.Path(package_dir, "RelWithDebInfo/lib")
157155
# pdb_dest.mkdir()
158156
pdb_files = pathlib.Path(self.build_folder).glob("hdps/RelWithDebInfo/*.pdb")
159157
for pfile in pdb_files:

0 commit comments

Comments
 (0)