If a compilation pdb file is present next to the library, install it.

This commit is contained in:
Adrien 2022-10-18 15:31:09 +02:00
parent dd8a678a66
commit 5baec224c5

View File

@ -396,5 +396,9 @@ if (GLFW_INSTALL)
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}") LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
# If a compilation .pdb file was produced, install it next to the library.
install(FILES "$<TARGET_FILE_DIR:glfw>/$<TARGET_FILE_BASE_NAME:glfw>.pdb"
DESTINATION "${CMAKE_INSTALL_LIBDIR}" OPTIONAL)
endif() endif()