Skip to content

Commit

Permalink
Install Windows debbuger (pdb) files. (#178)
Browse files Browse the repository at this point in the history
Fixes #173.
  • Loading branch information
floitsch authored Jan 30, 2022
1 parent 5cbc5ec commit a109d7d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:
cmake -DBUILD_TESTING=ON \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DCMAKE_INSTALL_PREFIX:PATH=${{ github.workspace }}/install_dir \
-DBUILD_SHARED_LIBS=ON \
..
- name: Build shared
run: |
cmake -DBUILD_SHARED_LIBS=ON buildX
cmake --build buildX --config ${{ matrix.build_type }}
- name: Install shared
Expand Down
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,13 @@ install(
NAMESPACE "${namespace}"
DESTINATION "${config_install_dir}"
)

if (MSVC AND BUILD_SHARED_LIBS)
# Install companion PDB for Visual Studio
install(
FILES $<TARGET_PDB_FILE:double-conversion>
TYPE BIN
OPTIONAL
)
endif()

3 changes: 3 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2022-01-16:
Install Visual Studio debugger (pdb) files.

2022-01-10:
Fix quiet NANs on MIPS* and PA-RISC architectures.
Update version number.
Expand Down

0 comments on commit a109d7d

Please sign in to comment.