diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 01f191c9..146db2b3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -396,5 +396,9 @@ if (GLFW_INSTALL) RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}") + + # If a compilation .pdb file was produced, install it next to the library. + install(FILES "$/$.pdb" + DESTINATION "${CMAKE_INSTALL_LIBDIR}" OPTIONAL) endif()