From 5baec224c597ffa2c5e5ca2d3ceb751be4f20957 Mon Sep 17 00:00:00 2001 From: Adrien Date: Tue, 18 Oct 2022 15:31:09 +0200 Subject: [PATCH] If a compilation pdb file is present next to the library, install it. --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) 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()